2011-06-21 18:19:30 +04:00
|
|
|
<h2><?php echo $l->t( 'Users' ); ?></h2>
|
2011-03-02 01:20:16 +03:00
|
|
|
|
2011-04-17 15:15:55 +04:00
|
|
|
<table id="usertable">
|
2011-03-02 01:20:16 +03:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2011-06-20 00:15:38 +04:00
|
|
|
<th><?php echo $l->t( 'Name' ); ?></th>
|
2011-06-20 20:51:06 +04:00
|
|
|
<th><?php echo $l->t( 'Groups' ); ?></th>
|
2011-04-16 16:59:10 +04:00
|
|
|
<th></th>
|
2011-03-02 01:20:16 +03:00
|
|
|
</tr>
|
2011-04-17 01:26:55 +04:00
|
|
|
</thead>
|
2011-04-17 15:15:55 +04:00
|
|
|
<tfoot>
|
|
|
|
<tr id="createuseroption">
|
2011-06-20 00:15:38 +04:00
|
|
|
<td><button id="createuseroptionbutton"><?php echo $l->t( 'Add user' ); ?></button></td>
|
2011-04-17 15:15:55 +04:00
|
|
|
<td> </td>
|
|
|
|
<td> </td>
|
|
|
|
</tr>
|
|
|
|
<form id="createuserdata">
|
|
|
|
<tr id="createuserform" style="display:none;">
|
|
|
|
<td>
|
2011-06-20 00:15:38 +04:00
|
|
|
<?php echo $l->t( 'Name' ); ?> <input x-use="createuserfield" type="text" name="username" /><br>
|
|
|
|
<?php echo $l->t( 'Password' ); ?> <input x-use="createuserfield" type="password" name="password" />
|
2011-04-17 15:15:55 +04:00
|
|
|
</td>
|
|
|
|
<td id="createusergroups">
|
|
|
|
<?php foreach($_["groups"] as $i): ?>
|
2011-06-21 21:18:34 +04:00
|
|
|
<input x-use="createusercheckbox" x-gid="<?php echo $i["name"]; ?>" type="checkbox" name="groups[]" value="<?php echo $i["name"]; ?>" />
|
|
|
|
<span x-gid="<?php echo $i["name"]; ?>"><?php echo $i["name"]; ?><br></span>
|
2011-04-17 15:15:55 +04:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
2011-06-20 00:15:38 +04:00
|
|
|
<button id="createuserbutton"><?php echo $l->t( 'Create user' ); ?></button>
|
2011-04-17 15:15:55 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</form>
|
|
|
|
</tfoot>
|
2011-03-02 01:20:16 +03:00
|
|
|
<tbody>
|
2011-03-09 22:13:52 +03:00
|
|
|
<?php foreach($_["users"] as $user): ?>
|
2011-04-17 20:05:49 +04:00
|
|
|
<tr x-uid="<?php echo $user["name"] ?>">
|
2011-04-18 11:30:37 +04:00
|
|
|
<td x-use="username"><div x-use="usernamediv"><?php echo $user["name"]; ?></div></td>
|
|
|
|
<td x-use="usergroups"><div x-use="usergroupsdiv"><?php if( $user["groups"] ){ echo $user["groups"]; }else{echo " ";} ?></div></td>
|
2011-06-20 00:15:38 +04:00
|
|
|
<td><a class="removeuserbutton" href=""><?php echo $l->t( 'remove' ); ?></a></td>
|
2011-03-02 01:20:16 +03:00
|
|
|
</tr>
|
2011-03-09 22:13:52 +03:00
|
|
|
<?php endforeach; ?>
|
2011-03-02 01:20:16 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2011-06-20 00:15:38 +04:00
|
|
|
<h2><?php echo $l->t( 'Groups' ); ?></h2>
|
2011-04-17 15:15:55 +04:00
|
|
|
<table id="grouptable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2011-06-20 00:15:38 +04:00
|
|
|
<th><?php echo $l->t( 'Name' ); ?></th>
|
2011-04-17 15:15:55 +04:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tfoot>
|
|
|
|
<form id="creategroupdata">
|
2011-03-02 01:20:16 +03:00
|
|
|
<tr>
|
2011-04-17 15:15:55 +04:00
|
|
|
<td><input x-use="creategroupfield" type="text" name="groupname" /></td>
|
2011-06-20 00:15:38 +04:00
|
|
|
<td><button id="creategroupbutton"><?php echo $l->t( 'Create group' ); ?></button></td>
|
2011-03-02 01:20:16 +03:00
|
|
|
</tr>
|
2011-04-17 15:15:55 +04:00
|
|
|
</form>
|
|
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach($_["groups"] as $group): ?>
|
2011-04-17 20:05:49 +04:00
|
|
|
<tr x-gid="<?php echo $group["name"]; ?>">
|
2011-04-17 15:15:55 +04:00
|
|
|
<td><?php echo $group["name"] ?></td>
|
2011-04-18 14:39:28 +04:00
|
|
|
<td>
|
|
|
|
<?php if( $group["name"] != "admin" ): ?>
|
2011-06-20 00:15:38 +04:00
|
|
|
<a class="removegroupbutton" href=""><?php echo $l->t( 'remove' ); ?></a>
|
2011-04-18 14:39:28 +04:00
|
|
|
<?php else: ?>
|
|
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
</td>
|
2011-04-17 03:04:23 +04:00
|
|
|
</tr>
|
2011-04-17 15:15:55 +04:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2011-04-16 16:59:10 +04:00
|
|
|
|
2011-04-17 15:15:55 +04:00
|
|
|
|
|
|
|
|
2011-04-17 20:05:49 +04:00
|
|
|
<div id="changegroups" style="display:none">
|
|
|
|
<form id="changegroupsform">
|
|
|
|
<input id="changegroupuid" type="hidden" name="username" value="" />
|
|
|
|
<input id="changegroupgid" type="hidden" name="group" value="" />
|
|
|
|
<?php foreach($_["groups"] as $i): ?>
|
2011-06-21 21:18:34 +04:00
|
|
|
<input x-use="togglegroup" x-gid="<?php echo $i["name"]; ?>" type="checkbox" name="groups[]" value="<?php echo $i["name"]; ?>" />
|
|
|
|
<span x-use="togglegroup" x-gid="<?php echo $i["name"]; ?>"><?php echo $i["name"]; ?><br></span>
|
2011-04-17 20:05:49 +04:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="changepassword" style="display:none">
|
|
|
|
<form id="changepasswordform">
|
|
|
|
<input id="changepassworduid" type="hidden" name="username" value="" />
|
2011-06-20 00:15:38 +04:00
|
|
|
<?php echo $l->t( 'Force new password:' ); ?>
|
2011-04-17 20:05:49 +04:00
|
|
|
<input id="changepasswordpwd" type="password" name="password" value="" />
|
2011-06-20 00:15:38 +04:00
|
|
|
<button id="changepasswordbutton"><?php echo $l->t( 'Set' ); ?></button>
|
2011-04-16 16:59:10 +04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2011-04-17 15:15:55 +04:00
|
|
|
<div id="removeuserform" title="Remove user">
|
2011-04-17 01:26:55 +04:00
|
|
|
<form id="removeuserdata">
|
2011-06-20 00:15:38 +04:00
|
|
|
<?php echo $l->t( 'Do you really want to delete user' ); ?> <span id="deleteuserusername">$user</span>?
|
2011-04-17 03:04:23 +04:00
|
|
|
<input id="deleteusernamefield" type="hidden" name="username" value="">
|
2011-04-17 01:26:55 +04:00
|
|
|
</form>
|
2011-04-16 16:59:10 +04:00
|
|
|
</div>
|
|
|
|
|
2011-04-17 15:15:55 +04:00
|
|
|
<div id="removegroupform" title="Remove Group">
|
2011-04-17 03:04:23 +04:00
|
|
|
<form id="removegroupdata">
|
2011-06-20 00:15:38 +04:00
|
|
|
<?php echo $l->t( 'Do you really want to delete group' ); ?> <span id="removegroupgroupname">$group</span>?
|
2011-04-17 15:15:55 +04:00
|
|
|
<input id="removegroupnamefield" type="hidden" name="groupname" value="">
|
2011-04-17 01:26:55 +04:00
|
|
|
</form>
|
2011-04-16 16:59:10 +04:00
|
|
|
</div>
|
2011-04-18 14:39:28 +04:00
|
|
|
|
|
|
|
<div id="errordialog" title="Error">
|
|
|
|
<span id="errormessage"></span>
|
|
|
|
</div>
|