system.phtml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php $this->partial('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url('configure', 'system'); ?>">
  5. <legend><?php echo _t('admin.system'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="instance-name"><?php echo _t('admin.system.instance-name'); ?></label>
  8. <div class="group-controls">
  9. <input type="text" id="max-feeds" name="instance-name" value="<?php echo FreshRSS_Context::$system_conf->title; ?>" min="1" data-leave-validation="<?php echo FreshRSS_Context::$system_conf->title; ?>"/>
  10. </div>
  11. </div>
  12. <div class="form-group">
  13. <label class="group-name" for="max-registrations"><?php echo _t('admin.system.registration.number'); ?></label>
  14. <div class="group-controls">
  15. <input type="number" id="max-registrations" name="max-registrations" value="<?php echo FreshRSS_Context::$system_conf->limits['max_registrations']; ?>" min="0" data-leave-validation="<?php echo FreshRSS_Context::$system_conf->limits['max_registrations']; ?>"/>
  16. <?php echo _i('help'); ?> <?php echo _t('admin.system.registration.help'); ?>
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <div class="group-controls">
  21. <?php
  22. $number = count(listUsers());
  23. echo _t($number > 1 ? 'admin.user.numbers' : 'admin.user.number', $number);
  24. ?>
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="group-name" for="max-feeds"><?php echo _t('admin.system.max-feeds'); ?></label>
  29. <div class="group-controls">
  30. <input type="number" id="max-feeds" name="max-feeds" value="<?php echo FreshRSS_Context::$system_conf->limits['max_feeds']; ?>" min="1" data-leave-validation="<?php echo FreshRSS_Context::$system_conf->limits['max_feeds']; ?>"/>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="group-name" for="max-categories"><?php echo _t('admin.system.max-categories'); ?></label>
  35. <div class="group-controls">
  36. <input type="number" id="max-categories" name="max-categories" value="<?php echo FreshRSS_Context::$system_conf->limits['max_categories']; ?>" min="1" data-leave-validation="<?php echo FreshRSS_Context::$system_conf->limits['max_categories']; ?>"/>
  37. </div>
  38. </div>
  39. <div class="form-group form-actions">
  40. <div class="group-controls">
  41. <button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
  42. <button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button>
  43. </div>
  44. </div>
  45. </form>
  46. </div>