summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-02-11 15:18:14 +0100
committerRobin Appelman <icewind@owncloud.com>2013-02-11 15:18:14 +0100
commite68e5cc849b625dccc38b903fd19e418d62d1c22 (patch)
treedc6f1855bd47faa84511e8986fb08f0df4e56347 /settings/templates
parent4a130d106c91246c046b1c924a92e674a47b7767 (diff)
downloadnextcloud-server-e68e5cc849b625dccc38b903fd19e418d62d1c22.tar.gz
nextcloud-server-e68e5cc849b625dccc38b903fd19e418d62d1c22.zip
Split editable select code used for quota selection into a jquery plugin
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/users.php62
1 files changed, 29 insertions, 33 deletions
diff --git a/settings/templates/users.php b/settings/templates/users.php
index b3cab526947..09a6ae72806 100644
--- a/settings/templates/users.php
+++ b/settings/templates/users.php
@@ -33,7 +33,6 @@ $_['subadmingroups'] = array_flip($items);
</form>
<div class="quota">
<span><?php echo $l->t('Default Storage');?></span>
- <div class="quota-select-wrapper">
<?php if((bool) $_['isadmin']): ?>
<select class='quota'>
<option
@@ -60,7 +59,7 @@ $_['subadmingroups'] = array_flip($items);
<?php echo $l->t('Other');?>
...
</option>
- </select> <input class='quota-other'/>
+ </select>
<?php endif; ?>
<?php if((bool) !$_['isadmin']): ?>
<select class='quota' disabled="disabled">
@@ -69,7 +68,6 @@ $_['subadmingroups'] = array_flip($items);
</option>
</select>
<?php endif; ?>
- </div>
</div>
</div>
@@ -129,36 +127,34 @@ $_['subadmingroups'] = array_flip($items);
</td>
<?php endif;?>
<td class="quota">
- <div class="quota-select-wrapper">
- <select class='quota-user'>
- <option
- <?php if($user['quota']=='default') echo 'selected="selected"';?>
- value='default'>
- <?php echo $l->t('Default');?>
- </option>
- <option
- <?php if($user['quota']=='none') echo 'selected="selected"';?>
- value='none'>
- <?php echo $l->t('Unlimited');?>
- </option>
- <?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($user['isQuotaUserDefined']):?>
- <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'/>
- </div>
+ <select class='quota-user'>
+ <option
+ <?php if($user['quota']=='default') echo 'selected="selected"';?>
+ value='default'>
+ <?php echo $l->t('Default');?>
+ </option>
+ <option
+ <?php if($user['quota']=='none') echo 'selected="selected"';?>
+ value='none'>
+ <?php echo $l->t('Unlimited');?>
+ </option>
+ <?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($user['isQuotaUserDefined']):?>
+ <option selected="selected" value='<?php echo $user['quota'];?>'>
+ <?php echo $user['quota'];?>
+ </option>
+ <?php endif;?>
+ <option value='other' data-new>
+ <?php echo $l->t('Other');?>
+ ...
+ </option>
+ </select>
</td>
<td class="remove">
<?php if($user['name']!=OC_User::getUser()):?>