system.phtml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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" class="extend" id="instance-name" name="instance-name" value="<?php echo FreshRSS_Context::$system_conf->title; ?>" 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="auto-update-url"><?php echo _t('admin.system.auto-update-url'); ?></label>
  14. <div class="group-controls">
  15. <input type="text" class="extend" id="auto-update-url" name="auto-update-url" value="<?php echo FreshRSS_Context::$system_conf->auto_update_url; ?>" data-leave-validation="<?php echo FreshRSS_Context::$system_conf->auto_update_url; ?>"/>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="group-name" for="max-registrations"><?php echo _t('admin.system.registration.number'); ?></label>
  20. <div class="group-controls">
  21. <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']; ?>"/>
  22. <?php echo _i('help'); ?> <?php echo _t('admin.system.registration.help'); ?>
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <div class="group-controls">
  27. <?php
  28. $number = count(listUsers());
  29. echo _t($number > 1 ? 'admin.user.numbers' : 'admin.user.number', $number);
  30. ?>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="group-name" for="max-feeds"><?php echo _t('admin.system.max-feeds'); ?></label>
  35. <div class="group-controls">
  36. <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']; ?>"/>
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="group-name" for="max-categories"><?php echo _t('admin.system.max-categories'); ?></label>
  41. <div class="group-controls">
  42. <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']; ?>"/>
  43. </div>
  44. </div>
  45. <div class="form-group form-actions">
  46. <div class="group-controls">
  47. <button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
  48. <button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button>
  49. </div>
  50. </div>
  51. </form>
  52. </div>