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'])) ;