|
|
|
@ -1,101 +1,102 @@ |
|
|
|
|
<h2><?php echo $l->t( 'Users' ); ?></h2>
|
|
|
|
|
|
|
|
|
|
<table id="usertable"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th><?php echo $l->t( 'Name' ); ?></th>
|
|
|
|
|
<th><?php echo $l->t( 'Groups' ); ?></th>
|
|
|
|
|
<th></th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tfoot> |
|
|
|
|
<tr id="createuseroption"> |
|
|
|
|
<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> |
|
|
|
|
<?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): ?> |
|
|
|
|
<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>
|
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<button id="createuserbutton"><?php echo $l->t( 'Create user' ); ?></button>
|
|
|
|
|
</td> |
|
|
|
|
<fieldset> |
|
|
|
|
<legend><?php echo $l->t( 'Users' ); ?></legend>
|
|
|
|
|
<table id="usertable"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th><?php echo $l->t( 'Name' ); ?></th>
|
|
|
|
|
<th><?php echo $l->t( 'Groups' ); ?></th>
|
|
|
|
|
<th></th> |
|
|
|
|
</tr> |
|
|
|
|
</form> |
|
|
|
|
</tfoot> |
|
|
|
|
<tbody> |
|
|
|
|
<?php foreach($_["users"] as $user): ?> |
|
|
|
|
<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=""><?php echo $l->t( 'remove' ); ?></a></td>
|
|
|
|
|
</thead> |
|
|
|
|
<tfoot> |
|
|
|
|
<tr id="createuserform"> |
|
|
|
|
<form id="createuserdata"> |
|
|
|
|
<td> |
|
|
|
|
<input x-use="createuserfield" type="text" name="username" placeholder='<?php echo $l->t( 'Name' ); ?>' />
|
|
|
|
|
<input x-use="createuserfield" type="password" name="password" placeholder='<?php echo $l->t( 'Password' ); ?>' />
|
|
|
|
|
</td> |
|
|
|
|
<td id="createusergroups"> |
|
|
|
|
<?php foreach($_["groups"] as $i): ?> |
|
|
|
|
<input id='newuser_group_<?php echo $i["name"]; ?>' 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"]; ?>"><label for='newuser_group_<?php echo $i["name"]; ?>'><?php echo $i["name"]; ?></label></span>
|
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<button id="createuserbutton"><?php echo $l->t( 'Create' ); ?></button>
|
|
|
|
|
</td> |
|
|
|
|
</form> |
|
|
|
|
</tr> |
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
</tfoot> |
|
|
|
|
<tbody> |
|
|
|
|
<?php foreach($_["users"] as $user): ?> |
|
|
|
|
<tr x-uid="<?php echo $user["name"] ?>">
|
|
|
|
|
<td x-use="username"><span x-use="usernamediv"><?php echo $user["name"]; ?></span></td>
|
|
|
|
|
<td x-use="usergroups"><div x-use="usergroupsdiv"><?php if( $user["groups"] ){ echo $user["groups"]; }else{echo " ";} ?></div></td>
|
|
|
|
|
<td> |
|
|
|
|
<?php if($user['name']!=OC_USER::getUser()):?> |
|
|
|
|
<a class="removeuserbutton" href=""><?php echo $l->t( 'remove' ); ?></a>
|
|
|
|
|
<?php endif;?> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
</fieldset> |
|
|
|
|
|
|
|
|
|
<h2><?php echo $l->t( 'Groups' ); ?></h2>
|
|
|
|
|
<table id="grouptable"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th><?php echo $l->t( 'Name' ); ?></th>
|
|
|
|
|
<th></th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tfoot> |
|
|
|
|
<form id="creategroupdata"> |
|
|
|
|
<fieldset> |
|
|
|
|
<legend><?php echo $l->t( 'Groups' ); ?></legend>
|
|
|
|
|
<table id="grouptable"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<td><input x-use="creategroupfield" type="text" name="groupname" /></td> |
|
|
|
|
<td><button id="creategroupbutton"><?php echo $l->t( 'Create group' ); ?></button></td>
|
|
|
|
|
</tr> |
|
|
|
|
</form> |
|
|
|
|
</tfoot> |
|
|
|
|
<tbody> |
|
|
|
|
<?php foreach($_["groups"] as $group): ?> |
|
|
|
|
<tr x-gid="<?php echo $group["name"]; ?>">
|
|
|
|
|
<td><?php echo $group["name"] ?></td>
|
|
|
|
|
<td> |
|
|
|
|
<?php if( $group["name"] != "admin" ): ?> |
|
|
|
|
<a class="removegroupbutton" href=""><?php echo $l->t( 'remove' ); ?></a>
|
|
|
|
|
<?php else: ?> |
|
|
|
|
|
|
|
|
|
<?php endif; ?> |
|
|
|
|
</td> |
|
|
|
|
<th><?php echo $l->t( 'Name' ); ?></th>
|
|
|
|
|
<th></th> |
|
|
|
|
</tr> |
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
</thead> |
|
|
|
|
<tfoot> |
|
|
|
|
<form id="creategroupdata"> |
|
|
|
|
<tr> |
|
|
|
|
<td><input x-use="creategroupfield" type="text" name="groupname" /></td> |
|
|
|
|
<td><button id="creategroupbutton"><?php echo $l->t( 'Create group' ); ?></button></td>
|
|
|
|
|
</tr> |
|
|
|
|
</form> |
|
|
|
|
</tfoot> |
|
|
|
|
<tbody> |
|
|
|
|
<?php foreach($_["groups"] as $group): ?> |
|
|
|
|
<tr x-gid="<?php echo $group["name"]; ?>">
|
|
|
|
|
<td><?php echo $group["name"] ?></td>
|
|
|
|
|
<td> |
|
|
|
|
<?php if( $group["name"] != "admin" ): ?> |
|
|
|
|
<a class="removegroupbutton" href=""><?php echo $l->t( 'remove' ); ?></a>
|
|
|
|
|
<?php else: ?> |
|
|
|
|
|
|
|
|
|
<?php endif; ?> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
</fieldset> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="changegroups" style="display:none"> |
|
|
|
|
<span 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): ?> |
|
|
|
|
<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>
|
|
|
|
|
<span x-use="togglegroup" x-gid="<?php echo $i["name"]; ?>"><?php echo $i["name"]; ?></span>
|
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
<div id="changepassword" style="display:none"> |
|
|
|
|
<span id="changepassword" style="display:none"> |
|
|
|
|
<form id="changepasswordform"> |
|
|
|
|
<input id="changepassworduid" type="hidden" name="username" value="" /> |
|
|
|
|
<?php echo $l->t( 'Force new password:' ); ?> |
|
|
|
|
<input id="changepasswordpwd" type="password" name="password" value="" /> |
|
|
|
|
<button id="changepasswordbutton"><?php echo $l->t( 'Set' ); ?></button>
|
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
<div id="removeuserform" title="Remove user"> |
|
|
|
|
<form id="removeuserdata"> |
|
|
|
|