diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-24 14:38:40 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-24 23:54:38 +0100 |
commit | 4230e217af16b400cf6eba26c2333ee4ea1f884c (patch) | |
tree | 96853f6557c32b3dcc3774ee3d7c96ab0e2d428e /settings/templates | |
parent | 9f5bce81b037624099012038f1ebfeb94d3317fd (diff) | |
download | nextcloud-server-4230e217af16b400cf6eba26c2333ee4ea1f884c.tar.gz nextcloud-server-4230e217af16b400cf6eba26c2333ee4ea1f884c.zip |
new config widget for user quota
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/users.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/settings/templates/users.php b/settings/templates/users.php index fde4cfb9aed..4d75b7a06db 100644 --- a/settings/templates/users.php +++ b/settings/templates/users.php @@ -48,9 +48,17 @@ foreach($_["groups"] as $group) { <?php endforeach;?> </select> </td> - <td class="quota" data-quota="<?php echo $user['quota']?>"> - <span><?php echo ($user['quota']>0)?$user['quota']:'None';?></span> - <img class="svg action" src="<?php echo image_path('core','actions/rename.svg')?>" alt="set new password" title="set quota" /> + <td class="quota"> + <select class='quota'> + <?php foreach($_['quota_preset'] as $preset):?> + <option <?php if($user['quota']==$preset) echo 'selected="selected"';?> value='<?php echo $preset;?>'><?php echo $preset;?></option> + <?php endforeach;?> + <?php if(array_search($user['quota'],$_['quota_preset'])===false):?> + <option selected="selected" value='<?php echo $user['quota'];?>'><?php echo $user['quota'];?></option> + <?php endif;?> + <option value='other'><?php echo $l->t('Other');?>...</option> + </select> + <input class='quota-other'></input> </td> <td class="remove"> <?php if($user['name']!=OC_User::getUser()):?> |