2014-02-19 19:53:29 +04:00
|
|
|
<div id="app-settings-header">
|
2014-08-11 18:34:24 +04:00
|
|
|
<button class="settings-button" tabindex="0" data-apps-slide-toggle="#app-settings-content"></button>
|
2014-02-19 19:53:29 +04:00
|
|
|
</div>
|
|
|
|
<div id="app-settings-content">
|
|
|
|
<div class="quota">
|
|
|
|
<!-- Default storage -->
|
|
|
|
<span><?php p($l->t('Default Quota'));?></span>
|
2014-04-20 01:53:47 +04:00
|
|
|
<?php if((bool) $_['isAdmin']): ?>
|
2014-08-12 20:04:52 +04:00
|
|
|
<select id='default_quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>" data-gravity="s">
|
2014-02-19 20:02:10 +04:00
|
|
|
<option <?php if($_['default_quota'] === 'none') print_unescaped('selected="selected"');?> value='none'>
|
|
|
|
<?php p($l->t('Unlimited'));?>
|
2014-02-19 19:53:29 +04:00
|
|
|
</option>
|
2014-02-19 20:02:10 +04:00
|
|
|
<?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']);?>
|
|
|
|
</option>
|
2014-02-19 19:53:29 +04:00
|
|
|
<?php endif;?>
|
2014-02-19 20:02:10 +04:00
|
|
|
<option data-new value='other'>
|
|
|
|
<?php p($l->t('Other'));?>
|
|
|
|
...
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
<?php endif; ?>
|
2014-04-20 01:53:47 +04:00
|
|
|
<?php if((bool) !$_['isAdmin']): ?>
|
2014-02-19 20:02:10 +04:00
|
|
|
<select class='quota' disabled="disabled">
|
|
|
|
<option selected="selected">
|
2014-02-19 19:53:29 +04:00
|
|
|
<?php p($_['default_quota']);?>
|
|
|
|
</option>
|
2014-02-19 20:02:10 +04:00
|
|
|
</select>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2014-08-11 18:34:24 +04:00
|
|
|
</div>
|