*/
-Prado::using('System.Web.UI.WebControls.TConditional');
+Prado::using('System.Web.UI.ActiveControls.TActiveRepeater');
Prado::using('Application.Web.Portlets.Portlets');
class Users extends Portlets {
case 'rmuser': {
if ($user != $_SERVER['PHP_AUTH_USER']) {
$this->getModule('basic_webuser')->removeUser($user);
+ if (array_key_exists('users', $this->web_config) && array_key_exists($user, $this->web_config['users'])) {
+ unset($this->web_config['users'][$user]);
+ }
+ $this->getModule('web_config')->setConfig($this->web_config);
$this->setUsers();
}
break;
<a class="big" href="javascript:void(0)" id="add_user_btn"><img src="/themes/Baculum-v1/add.png" alt="Add"><%[ Add new user ]%></a>
<div id="add_user" style="display: none">
- <p><%[ Username: ]%><input id="newuser" type="text" /><%[ Password: ]%><input id="newpwd" type="password" /><%[ API host: ]%><com:TDropDownList ID="HostsList" OnInit="SourceTemplateControl.initHosts" />
+ <p><%[ Username: ]%><input id="newuser" type="text" /><%[ Password: ]%><input id="newpwd" type="password" />
<a href="javascript:void(0)" onclick="Users.addUser()">
<img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/icon_ok.png" alt="<%[ Save ]%>" title="<%[ Save ]%>"/>
</a>
<img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/icon_err.png" alt="<%[ Close ]%>" title="<%[ Close ]%>" />
</a></p>
</div>
-<com:TRepeater ID="UsersList">
+<com:TActiveRepeater ID="UsersList">
<prop:HeaderTemplate>
<table id="users_list" class="window-section-detail-smallrow">
<tr>
<prop:FooterTemplate>
</table>
</prop:FooterTemplate>
-</com:TRepeater>
+</com:TActiveRepeater>
<p><em><%[ Please note that for each user (excluding administrator) there should exist separate Bconsole config file in form: ]%> <strong><com:TLabel ID="BconsoleCustomPath" /></strong></em></p>
<com:TCallback ID="UserAction" OnCallback="TemplateControl.userAction" ClientSide.OnComplete="Users.hide_loader();" />
<script type="text/javascript">