disable the possibility to change the site of a existing shell user.
| | |
| | | } else { |
| | | $app->tpl->setVar("username_prefix", $shelluser_prefix); |
| | | } |
| | | |
| | | if($this->id > 0) { |
| | | //* we are editing a existing record |
| | | $app->tpl->setVar("parent_domain_id_disabled", 'disabled="disabled"'); |
| | | } else { |
| | | $app->tpl->setVar("parent_domain_id_disabled", ''); |
| | | } |
| | | |
| | | parent::onShowEnd(); |
| | | } |
| | |
| | | <fieldset id="wf_area_shell_user"><legend>Shell User</legend> |
| | | <span class="wf_oneField"> |
| | | <label for="parent_domain_id" class="wf_preField">{tmpl_var name='parent_domain_id_txt'}</label> |
| | | <select id="parent_domain_id" name="parent_domain_id">{tmpl_var name='parent_domain_id'}</select> |
| | | <select id="parent_domain_id" name="parent_domain_id" {tmpl_var name='parent_domain_id_disabled'}>{tmpl_var name='parent_domain_id'}</select> |
| | | </span> |
| | | <span class="wf_oneField"> |
| | | <label for="username" class="wf_preField">{tmpl_var name='username_txt'}</label> |