First try with a GUI.
This commit is contained in:
parent
fb78c4431e
commit
ce625c324a
8 changed files with 284 additions and 5 deletions
|
@ -0,0 +1,27 @@
|
|||
<?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']))
|
||||
;
|
Loading…
Add table
Add a link
Reference in a new issue