2014-08-29 02:08:01 +04:00
|
|
|
<div class="quota">
|
|
|
|
<!-- Default storage -->
|
2016-03-03 23:18:03 +03:00
|
|
|
<span><?php p($l->t('Default quota'));?></span>
|
2014-08-29 02:08:01 +04:00
|
|
|
<?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);?>
|
2014-02-19 20:02:10 +04:00
|
|
|
</option>
|
2014-02-19 19:53:29 +04:00
|
|
|
<?php endif;?>
|
2014-08-29 02:08:01 +04:00
|
|
|
<?php endforeach;?>
|
|
|
|
<?php if($_['defaultQuotaIsUserDefined']):?>
|
|
|
|
<option selected="selected" value='<?php p($_['default_quota']);?>'>
|
2014-02-19 19:53:29 +04:00
|
|
|
<?php p($_['default_quota']);?>
|
|
|
|
</option>
|
2014-08-29 02:08:01 +04:00
|
|
|
<?php endif;?>
|
|
|
|
<option data-new value='other'>
|
|
|
|
<?php p($l->t('Other'));?>
|
|
|
|
...
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if((bool) !$_['isAdmin']): ?>
|
2016-03-08 01:44:40 +03:00
|
|
|
:
|
|
|
|
<?php if( $_['default_quota']=="none"): ?>
|
|
|
|
<?php p($l->t('Unlimited'));?>
|
|
|
|
<?php else: ?>
|
|
|
|
<?php p($_['default_quota']);?>
|
|
|
|
<?php endif; ?>
|
2014-08-29 02:08:01 +04:00
|
|
|
<?php endif; ?>
|
2014-08-11 18:34:24 +04:00
|
|
|
</div>
|