2011-07-20 03:18:43 +04:00
|
|
|
<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>
|
2011-04-17 15:15:55 +04:00
|
|
|
</tr>
|
2011-07-20 03:18:43 +04:00
|
|
|
</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>
|
2011-03-02 01:20:16 +03:00
|
|
|
</tr>
|
2011-07-20 03:18:43 +04:00
|
|
|
</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>
|
2011-07-29 23:36:03 +04:00
|
|
|
<?php if($user['name']!=OC_User::getUser()):?>
|
2011-07-20 03:18:43 +04:00
|
|
|
<a class="removeuserbutton" href=""><?php echo $l->t( 'remove' ); ?></a>
|
|
|
|
<?php endif;?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
2011-03-02 01:20:16 +03:00
|
|
|
|
2011-07-20 03:18:43 +04:00
|
|
|
<fieldset>
|
|
|
|
<legend><?php echo $l->t( 'Groups' ); ?></legend>
|
|
|
|
<table id="grouptable">
|
|
|
|
<thead>
|
2011-03-02 01:20:16 +03:00
|
|
|
<tr>
|
2011-07-20 03:18:43 +04:00
|
|
|
<th><?php echo $l->t( 'Name' ); ?></th>
|
|
|
|
<th></th>
|
2011-04-17 03:04:23 +04:00
|
|
|
</tr>
|
2011-07-20 03:18:43 +04:00
|
|
|
</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>
|
2011-04-17 15:15:55 +04:00
|
|
|
|
|
|
|
|
2011-07-20 03:18:43 +04:00
|
|
|
<span id="changegroups" style="display:none">
|
2011-04-17 20:05:49 +04:00
|
|
|
<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"]; ?>" />
|
2011-07-20 03:18:43 +04:00
|
|
|
<span x-use="togglegroup" x-gid="<?php echo $i["name"]; ?>"><?php echo $i["name"]; ?></span>
|
2011-04-17 20:05:49 +04:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</form>
|
2011-07-20 03:18:43 +04:00
|
|
|
</span>
|
2011-04-17 20:05:49 +04:00
|
|
|
|
2011-07-20 03:18:43 +04:00
|
|
|
<span id="changepassword" style="display:none">
|
2011-04-17 20:05:49 +04:00
|
|
|
<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>
|
2011-07-20 03:18:43 +04:00
|
|
|
</span>
|
2011-04-16 16:59:10 +04:00
|
|
|
|
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>
|