summaryrefslogtreecommitdiffstats
path: root/admin/templates/users.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/templates/users.php')
-rw-r--r--admin/templates/users.php57
1 files changed, 28 insertions, 29 deletions
diff --git a/admin/templates/users.php b/admin/templates/users.php
index 00daf4c5263..166f78ed919 100644
--- a/admin/templates/users.php
+++ b/admin/templates/users.php
@@ -1,8 +1,4 @@
<div id="controls">
- <form id="newgroup">
- <input id="newgroupname" placeholder="<?php echo $l->t('Name')?>"></input>
- <input type="submit" value="<?php echo $l->t('Create')?>"></input>
- </form>
<form id="newuser">
<input id="newusername" placeholder="<?php echo $l->t('Name')?>"></input>
<input type="password" id="newuserpassword" placeholder="<?php echo $l->t('Password')?>"></input>
@@ -14,29 +10,32 @@
<input type="submit" value="<?php echo $l->t('Create')?>"></input>
</form>
</div>
-<ul id="leftcontent">
- <?php foreach($_["groups"] as $group): ?>
- <li data-gid="<?php echo $group["name"]; ?>">
- <?php echo $group["name"] ?>
- </li>
+<?php
+$allGroups=array();
+foreach($_["groups"] as $group){
+ $allGroups[]=$group['name'];
+}
+?>
+<table data-groups="<?php echo implode(', ',$allGroups);?>">
+ <?php foreach($_["users"] as $user): ?>
+ <tr data-uid="<?php echo $user["name"] ?>">
+ <td class="name"><?php echo $user["name"]; ?></td>
+ <td class="password">
+ <span>●●●●●●●</span>
+ <img class="svg" src="<?php echo image_path('core','actions/rename.svg')?>"/>
+ </td>
+ <td class="groups">
+ <select data-username="<?php echo $user['name'] ;?>" data-user-groups="<?php echo $user['groups'] ;?>" data-placeholder="groups" title="<?php echo $l->t('Groups')?>" multiple="multiple">
+ <?php foreach($_["groups"] as $group): ?>
+ <option value="<?php echo $group['name'];?>"><?php echo $group['name'];?></option>
+ <?php endforeach;?>
+ </select>
+ </td>
+ <td class="remove">
+ <?php if($user['name']!=OC_User::getUser()):?>
+ <img alt="Remove" title="<?php echo $l->t('Remove')?>" class='svg' src='<?php echo image_path('core','actions/delete.svg') ?>'/>
+ <?php endif;?>
+ </td>
+ </tr>
<?php endforeach; ?>
-</ul>
-<div id="rightcontent">
- <table>
- <?php foreach($_["users"] as $user): ?>
- <tr data-uid="<?php echo $user["name"] ?>">
- <td class="select"><input type="checkbox"></input></td>
- <td class="name"><?php echo $user["name"]; ?></td>
- <td class="groups"><?php if( $user["groups"] ){ echo $user["groups"]; }else{echo "&nbsp";} ?></td>
- <td class="remove">
- <?php if($user['name']!=OC_User::getUser()):?>
- <img alt="Remove" title="<?php echo $l->t('Remove')?>" class='svg' src='<?php echo image_path('core','actions/delete.svg') ?>'/>
- <?php endif;?>
- </td>
- </tr>
- <?php endforeach; ?>
- </table>
-</div>
-<div id="#selecteduser">
-
-</div>
+</table>