diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-08-29 00:08:01 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-08-29 00:08:01 +0200 |
commit | ba841d956160a83206449ab9d6345d5cd13f67e9 (patch) | |
tree | 103723fa8e06ab687c439c24d019f67f58f70119 /settings/templates | |
parent | c7c54d93618d456ce6e53ee35b4280097cc3f54c (diff) | |
download | nextcloud-server-ba841d956160a83206449ab9d6345d5cd13f67e9.tar.gz nextcloud-server-ba841d956160a83206449ab9d6345d5cd13f67e9.zip |
user mgmt: move 'Show storage location' and 'Show last log in' to settings area
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/users/main.php | 18 | ||||
-rw-r--r-- | settings/templates/users/part.createuser.php | 11 | ||||
-rw-r--r-- | settings/templates/users/part.setquota.php | 63 |
3 files changed, 46 insertions, 46 deletions
diff --git a/settings/templates/users/main.php b/settings/templates/users/main.php index c5805d53476..59284eaabd3 100644 --- a/settings/templates/users/main.php +++ b/settings/templates/users/main.php @@ -22,7 +22,23 @@ $userlistParams['subadmingroups'] = array_flip($items); <div id="app-navigation"> <?php print_unescaped($this->inc('users/part.grouplist')); ?> <div id="app-settings"> - <?php print_unescaped($this->inc('users/part.setquota')); ?> + <div id="app-settings-header"> + <button class="settings-button" tabindex="0" data-apps-slide-toggle="#app-settings-content"></button> + </div> + <div id="app-settings-content"> + <?php print_unescaped($this->inc('users/part.setquota')); ?> + + <div id="userlistoptions"> + <p><label> + <input type="checkbox" name="StorageLocation" value="StorageLocation" id="CheckboxStorageLocation"> + <?php p($l->t('Show storage location')) ?> + </label></p> + <p><label> + <input type="checkbox" name="LastLogin" value="LastLogin" id="CheckboxLastLogin"> + <?php p($l->t('Show last log in')) ?> + </label></p> + </div> + </div> </div> </div> diff --git a/settings/templates/users/part.createuser.php b/settings/templates/users/part.createuser.php index 70e5a237610..edec7587eb5 100644 --- a/settings/templates/users/part.createuser.php +++ b/settings/templates/users/part.createuser.php @@ -28,17 +28,6 @@ alt="<?php p($l->t('Enter the recovery password in order to recover the users files during password change'))?>"/> </div> <?php endif; ?> - - <form id="userlistoptions"> - <?php p($l->t('Display')) ?> : - <label><input type="checkbox" name="StorageLocation" value="StorageLocation" id="CheckboxStorageLocation"> - <?php p($l->t('Location')) ?> - </label> - <label><input type="checkbox" name="LastLogin" value="LastLogin" id="CheckboxLastLogin"> - <?php p($l->t('Last login')) ?> - </label> - </form> - <form autocomplete="off" id="usersearchform"> <input type="text" class="input userFilter" placeholder="<?php p($l->t('Search Users and Groups')); ?>" /> </form> diff --git a/settings/templates/users/part.setquota.php b/settings/templates/users/part.setquota.php index afbbee82063..b58df49998a 100644 --- a/settings/templates/users/part.setquota.php +++ b/settings/templates/users/part.setquota.php @@ -1,39 +1,34 @@ -<div id="app-settings-header"> - <button class="settings-button" tabindex="0" data-apps-slide-toggle="#app-settings-content"></button> -</div> -<div id="app-settings-content"> - <div class="quota"> - <!-- Default storage --> - <span><?php p($l->t('Default Quota'));?></span> - <?php if((bool) $_['isAdmin']): ?> - <select id='default_quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>" data-tipsy-gravity="s"> - <option <?php if($_['default_quota'] === 'none') print_unescaped('selected="selected"');?> value='none'> - <?php p($l->t('Unlimited'));?> - </option> - <?php foreach($_['quota_preset'] as $preset):?> - <?php if($preset !== 'default'):?> - <option <?php if($_['default_quota']==$preset) print_unescaped('selected="selected"');?> value='<?php p($preset);?>'> - <?php p($preset);?> - </option> - <?php endif;?> - <?php endforeach;?> - <?php if($_['defaultQuotaIsUserDefined']):?> - <option selected="selected" value='<?php p($_['default_quota']);?>'> - <?php p($_['default_quota']);?> +<div class="quota"> + <!-- Default storage --> + <span><?php p($l->t('Default Quota'));?></span> + <?php if((bool) $_['isAdmin']): ?> + <select id='default_quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>" data-tipsy-gravity="s"> + <option <?php if($_['default_quota'] === 'none') print_unescaped('selected="selected"');?> value='none'> + <?php p($l->t('Unlimited'));?> + </option> + <?php foreach($_['quota_preset'] as $preset):?> + <?php if($preset !== 'default'):?> + <option <?php if($_['default_quota']==$preset) print_unescaped('selected="selected"');?> value='<?php p($preset);?>'> + <?php p($preset);?> </option> <?php endif;?> - <option data-new value='other'> - <?php p($l->t('Other'));?> - ... - </option> - </select> - <?php endif; ?> - <?php if((bool) !$_['isAdmin']): ?> - <select class='quota' disabled="disabled"> - <option selected="selected"> + <?php endforeach;?> + <?php if($_['defaultQuotaIsUserDefined']):?> + <option selected="selected" value='<?php p($_['default_quota']);?>'> <?php p($_['default_quota']);?> </option> - </select> - <?php endif; ?> - </div> + <?php endif;?> + <option data-new value='other'> + <?php p($l->t('Other'));?> + ... + </option> + </select> + <?php endif; ?> + <?php if((bool) !$_['isAdmin']): ?> + <select class='quota' disabled="disabled"> + <option selected="selected"> + <?php p($_['default_quota']);?> + </option> + </select> + <?php endif; ?> </div> |