]> source.dussan.org Git - nextcloud-server.git/commitdiff
"Group admin" default label (issue #7706)
authorSebastian Bolt <sebastian.bolt@gmx.de>
Wed, 22 Oct 2014 20:08:55 +0000 (22:08 +0200)
committerSebastian Bolt <sebastian.bolt@gmx.de>
Wed, 22 Oct 2014 20:08:55 +0000 (22:08 +0200)
Changed the column header to "Group Admin for" and the default value of
the multiselect box to "no group" if user is not a groupadmin for any
group.

settings/js/users/users.js
settings/templates/users/part.userlist.php

index 0cb5fe3e15ca0faeb96c507713b1ae61a5e445f7..f7ac5dc752d844a96ea9a801d5d89a19585290ae 100644 (file)
@@ -50,7 +50,7 @@ var UserList = {
                        .data('username', username)
                        .data('user-groups', groups);
                if ($tr.find('td.subadmins').length > 0) {
-                       subAdminSelect = $('<select multiple="multiple" class="subadminsselect multiselect button" data-placehoder="subadmins" title="' + t('settings', 'Group Admin') + '">')
+                       subAdminSelect = $('<select multiple="multiple" class="subadminsselect multiselect button" data-placehoder="subadmins" title="' + t('settings', 'no group') + '">')
                                .data('username', username)
                                .data('user-groups', groups)
                                .data('subadmin', subadmin);
index 25b17275858ad032aff013f194df406eddc14338..964aef600a2a0352456b7c46e94ea9e853632fc1 100644 (file)
@@ -9,7 +9,7 @@
                        <th id="headerPassword"><?php p($l->t( 'Password' )); ?></th>
                        <th id="headerGroups"><?php p($l->t( 'Groups' )); ?></th>
                        <?php if(is_array($_['subadmins']) || $_['subadmins']): ?>
-                       <th id="headerSubAdmins"><?php p($l->t('Group Admin')); ?></th>
+                       <th id="headerSubAdmins"><?php p($l->t('Group Admin for')); ?></th>
                        <?php endif;?>
                        <th id="headerQuota"><?php p($l->t('Quota')); ?></th>
                        <th id="headerStorageLocation"><?php p($l->t('Storage Location')); ?></th>
@@ -38,7 +38,7 @@
                                        class="groupsselect"
                                        data-username="<?php p($user['name']) ;?>"
                                        data-user-groups="<?php p(json_encode($user['groups'])) ;?>"
-                                       data-placeholder="groups" title="<?php p($l->t('Groups'))?>"
+                                       data-placeholder="groups" title="<?php p($l->t('no group'))?>"
                                        multiple="multiple">
                                                <?php foreach($_["adminGroup"] as $adminGroup): ?>
                                                <option value="<?php p($adminGroup['name']);?>"><?php p($adminGroup['name']); ?></option>
@@ -54,7 +54,7 @@
                                                class="subadminsselect"
                                                data-username="<?php p($user['name']) ;?>"
                                                data-subadmin="<?php p(json_encode($user['subadmin']));?>"
-                                               data-placeholder="subadmins" title="<?php p($l->t('Group Admin'))?>"
+                                               data-placeholder="subadmins" title="<?php p($l->t('no group'))?>"
                                                multiple="multiple">
                                                <?php foreach($_["subadmingroups"] as $group): ?>
                                                        <option value="<?php p($group);?>"><?php p($group);?></option>