summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-07-20 15:20:48 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-07-20 15:20:48 +0200
commitc3bd30cc6b5b9de1578aa5a3b3d1123166232045 (patch)
tree9779fc8d21db2d26deae1e0c53571972334f99e6 /settings/templates
parent7f08c84739f5cff97a6176555ddc2bef6a0f010f (diff)
downloadnextcloud-server-c3bd30cc6b5b9de1578aa5a3b3d1123166232045.tar.gz
nextcloud-server-c3bd30cc6b5b9de1578aa5a3b3d1123166232045.zip
improve default qouta for subadmins
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/users.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/settings/templates/users.php b/settings/templates/users.php
index 9f246423d20..3e1eb9a0bbe 100644
--- a/settings/templates/users.php
+++ b/settings/templates/users.php
@@ -13,7 +13,9 @@ $items = array_flip($_['subadmingroups']);
unset($items['admin']);
$_['subadmingroups'] = array_flip($items);
?>
-
+<script>
+var isadmin = <?php echo $_['isadmin']?'true':'false'; ?>;
+</script>
<div id="controls">
<form id="newuser">
<input id="newusername" placeholder="<?php echo $l->t('Name')?>" /> <input
@@ -32,7 +34,8 @@ $_['subadmingroups'] = array_flip($items);
<div class="quota">
<span><?php echo $l->t('Default Quota');?>:</span>
<div class="quota-select-wrapper">
- <select class='quota' <?php if(!(is_array($_['subadmins']) || $_['subadmins'])) echo 'disabled="disabled"'; ?>>
+ <?php if((bool) $_['isadmin']): ?>
+ <select class='quota'>
<?php foreach($_['quota_preset'] as $preset):?>
<?php if($preset!='default'):?>
<option
@@ -53,6 +56,14 @@ $_['subadmingroups'] = array_flip($items);
...
</option>
</select> <input class='quota-other'></input>
+ <?php endif; ?>
+ <?php if((bool) !$_['isadmin']): ?>
+ <select class='quota' disabled="disabled">
+ <option selected="selected">
+ <?php echo $_['default_quota'];?>
+ </option>
+ </select>
+ <?php endif; ?>
</div>
</div>
</div>