|
|
|
@ -3,22 +3,22 @@ |
|
|
|
|
<table id="usertable"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th>Name</th> |
|
|
|
|
<th><?php echo $l->t( 'Name' ); ?></th>
|
|
|
|
|
<th>Groups</th> |
|
|
|
|
<th></th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tfoot> |
|
|
|
|
<tr id="createuseroption"> |
|
|
|
|
<td><button id="createuseroptionbutton">Add user</button></td> |
|
|
|
|
<td><button id="createuseroptionbutton"><?php echo $l->t( 'Add user' ); ?></button></td>
|
|
|
|
|
<td> </td> |
|
|
|
|
<td> </td> |
|
|
|
|
</tr> |
|
|
|
|
<form id="createuserdata"> |
|
|
|
|
<tr id="createuserform" style="display:none;"> |
|
|
|
|
<td> |
|
|
|
|
Name <input x-use="createuserfield" type="text" name="username" /><br> |
|
|
|
|
Password <input x-use="createuserfield" type="password" name="password" /> |
|
|
|
|
<?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" />
|
|
|
|
|
</td> |
|
|
|
|
<td id="createusergroups"> |
|
|
|
|
<?php foreach($_["groups"] as $i): ?> |
|
|
|
@ -27,7 +27,7 @@ |
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<button id="createuserbutton">Create user</button> |
|
|
|
|
<button id="createuserbutton"><?php echo $l->t( 'Create user' ); ?></button>
|
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</form> |
|
|
|
@ -37,17 +37,17 @@ |
|
|
|
|
<tr x-uid="<?php echo $user["name"] ?>">
|
|
|
|
|
<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>
|
|
|
|
|
<td><a class="removeuserbutton" href="">remove</a></td> |
|
|
|
|
<td><a class="removeuserbutton" href=""><?php echo $l->t( 'remove' ); ?></a></td>
|
|
|
|
|
</tr> |
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
<h2>Groups</h2> |
|
|
|
|
<h2><?php echo $l->t( 'Groups' ); ?></h2>
|
|
|
|
|
<table id="grouptable"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th>Name</th> |
|
|
|
|
<th><?php echo $l->t( 'Name' ); ?></th>
|
|
|
|
|
<th></th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
@ -55,7 +55,7 @@ |
|
|
|
|
<form id="creategroupdata"> |
|
|
|
|
<tr> |
|
|
|
|
<td><input x-use="creategroupfield" type="text" name="groupname" /></td> |
|
|
|
|
<td><button id="creategroupbutton">Create group</button></td> |
|
|
|
|
<td><button id="creategroupbutton"><?php echo $l->t( 'Create group' ); ?></button></td>
|
|
|
|
|
</tr> |
|
|
|
|
</form> |
|
|
|
|
</tfoot> |
|
|
|
@ -65,7 +65,7 @@ |
|
|
|
|
<td><?php echo $group["name"] ?></td>
|
|
|
|
|
<td> |
|
|
|
|
<?php if( $group["name"] != "admin" ): ?> |
|
|
|
|
<a class="removegroupbutton" href="">remove</a> |
|
|
|
|
<a class="removegroupbutton" href=""><?php echo $l->t( 'remove' ); ?></a>
|
|
|
|
|
<?php else: ?> |
|
|
|
|
|
|
|
|
|
<?php endif; ?> |
|
|
|
@ -91,22 +91,22 @@ |
|
|
|
|
<div id="changepassword" style="display:none"> |
|
|
|
|
<form id="changepasswordform"> |
|
|
|
|
<input id="changepassworduid" type="hidden" name="username" value="" /> |
|
|
|
|
Force new password: |
|
|
|
|
<?php echo $l->t( 'Force new password:' ); ?> |
|
|
|
|
<input id="changepasswordpwd" type="password" name="password" value="" /> |
|
|
|
|
<button id="changepasswordbutton">Set</button> |
|
|
|
|
<button id="changepasswordbutton"><?php echo $l->t( 'Set' ); ?></button>
|
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="removeuserform" title="Remove user"> |
|
|
|
|
<form id="removeuserdata"> |
|
|
|
|
Do you really want to delete user <span id="deleteuserusername">$user</span>? |
|
|
|
|
<?php echo $l->t( 'Do you really want to delete user' ); ?> <span id="deleteuserusername">$user</span>?
|
|
|
|
|
<input id="deleteusernamefield" type="hidden" name="username" value=""> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div id="removegroupform" title="Remove Group"> |
|
|
|
|
<form id="removegroupdata"> |
|
|
|
|
Do you really want to delete group <span id="removegroupgroupname">$group</span>? |
|
|
|
|
<?php echo $l->t( 'Do you really want to delete group' ); ?> <span id="removegroupgroupname">$group</span>?
|
|
|
|
|
<input id="removegroupnamefield" type="hidden" name="groupname" value=""> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|