nethserver-profilemgr/root/usr/share/nethesis/NethServer/Template/Profile/Clean.php

28 lines
958 B
PHP
Raw Normal View History

2018-07-17 22:41:06 +02:00
<?php
$view->requireFlag($view::INSET_DIALOG);
switch ($view->getModule()->getIdentifier()) {
case "all":
$headerText = $T('Complete profile cleanup - `${0}`');
$panelText = $T('Proceed with the complete profile cleanup for user `${0}`?');
break;
case "gui":
$headerText = $T('Cleanup GUI settings - `${0}`');
$panelText = $T('Proceed with the removal of GUI settings for user `${0}`?');
break;
case "libreoffice":
$headerText = $T('Cleanup of LibreOffice settings - `${0}`');
$panelText = $T('Proceed with the removal of LibreOffice settings for user `${0}`?');
break;
}
echo $view->panel()
->insert($view->header('username')->setAttribute('template', $headerText))
->insert($view->textLabel('username')->setAttribute('template', $panelText))
;
echo $view->buttonList()
->insert($view->button('Yes', $view::BUTTON_SUBMIT))
->insert($view->button('No', $view::BUTTON_CANCEL)->setAttribute('value', $view['Cancel']))
;