part.setquota.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <div id="app-settings-header">
  2. <button class="settings-button" tabindex="0"></button>
  3. </div>
  4. <div id="app-settings-content">
  5. <div class="quota">
  6. <!-- Default storage -->
  7. <span><?php p($l->t('Default Quota'));?></span>
  8. <?php if((bool) $_['isAdmin']): ?>
  9. <select id='default_quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>">
  10. <option <?php if($_['default_quota'] === 'none') print_unescaped('selected="selected"');?> value='none'>
  11. <?php p($l->t('Unlimited'));?>
  12. </option>
  13. <?php foreach($_['quota_preset'] as $preset):?>
  14. <?php if($preset !== 'default'):?>
  15. <option <?php if($_['default_quota']==$preset) print_unescaped('selected="selected"');?> value='<?php p($preset);?>'>
  16. <?php p($preset);?>
  17. </option>
  18. <?php endif;?>
  19. <?php endforeach;?>
  20. <?php if($_['defaultQuotaIsUserDefined']):?>
  21. <option selected="selected" value='<?php p($_['default_quota']);?>'>
  22. <?php p($_['default_quota']);?>
  23. </option>
  24. <?php endif;?>
  25. <option data-new value='other'>
  26. <?php p($l->t('Other'));?>
  27. ...
  28. </option>
  29. </select>
  30. <?php endif; ?>
  31. <?php if((bool) !$_['isAdmin']): ?>
  32. <select class='quota' disabled="disabled">
  33. <option selected="selected">
  34. <?php p($_['default_quota']);?>
  35. </option>
  36. </select>
  37. <?php endif; ?>
  38. </div>
  39. </div>