summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-28 13:12:44 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-28 13:12:44 +0100
commit022a7b13b828fd1ffb4beb7f63cca45bf4ffff1e (patch)
treedf5eab7ed14bc7c132ed4df5d3de0d3206c407fb /settings/templates
parent996b5cf36898a3b7644eca568df453b9d6cc4808 (diff)
downloadnextcloud-server-022a7b13b828fd1ffb4beb7f63cca45bf4ffff1e.tar.gz
nextcloud-server-022a7b13b828fd1ffb4beb7f63cca45bf4ffff1e.zip
prepare user table to show and edit display names
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/users.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings/templates/users.php b/settings/templates/users.php
index 44e9b5bafeb..64dce38ba31 100644
--- a/settings/templates/users.php
+++ b/settings/templates/users.php
@@ -79,6 +79,7 @@ var isadmin = <?php echo $_['isadmin']?'true':'false'; ?>;
<thead>
<tr>
<th id='headerName'><?php echo $l->t('Name')?></th>
+ <th id="headerDisplayName"><?php echo $l->t( 'Display Name' ); ?></th>
<th id="headerPassword"><?php echo $l->t( 'Password' ); ?></th>
<th id="headerGroups"><?php echo $l->t( 'Groups' ); ?></th>
<?php if(is_array($_['subadmins']) || $_['subadmins']): ?>
@@ -92,6 +93,10 @@ var isadmin = <?php echo $_['isadmin']?'true':'false'; ?>;
<?php foreach($_["users"] as $user): ?>
<tr data-uid="<?php echo $user["name"] ?>">
<td class="name"><?php echo $user["name"]; ?></td>
+ <td class="displayName"><?php echo $user["displayName"]; ?> <img class="svg action"
+ src="<?php echo image_path('core', 'actions/rename.svg')?>"
+ alt="change display name" title="change display name"/>
+ </td>
<td class="password"><span>●●●●●●●</span> <img class="svg action"
src="<?php echo image_path('core', 'actions/rename.svg')?>"
alt="set new password" title="set new password"/>
@@ -157,7 +162,7 @@ var isadmin = <?php echo $_['isadmin']?'true':'false'; ?>;
</div>
</td>
<td class="remove">
- <?php if($user['uid']!=OC_User::getUser()):?>
+ <?php if($user['name']!=OC_User::getUser()):?>
<a href="#" class="action delete" original-title="<?php echo $l->t('Delete')?>">
<img src="<?php echo image_path('core', 'actions/delete.svg') ?>" />
</a>