update.phtml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="post">
  2. <h1><?php echo $this->category->name(); ?></h1>
  3. <div>
  4. <a href="<?php echo _url('index', 'index', 'get', 'c_' . $this->category->id()); ?>"><?php echo _i('link'); ?> <?php echo _t('gen.action.filter'); ?></a>
  5. </div>
  6. <form method="post" action="<?php echo _url('subscription', 'category', 'id', $this->category->id()); ?>" autocomplete="off">
  7. <input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
  8. <legend><?php echo _t('sub.category.information'); ?></legend>
  9. <div class="form-group">
  10. <label class="group-name" for="name"><?php echo _t('sub.category.title'); ?></label>
  11. <div class="group-controls">
  12. <input type="text" name="name" id="name" class="extend" value="<?php echo $this->category->name() ; ?>" <?php
  13. //Disallow changing the name of the default category
  14. echo $this->category->id() == FreshRSS_CategoryDAO::DEFAULTCATEGORYID ? 'disabled="disabled"' : '';
  15. ?> />
  16. </div>
  17. </div>
  18. <div class="form-group form-actions">
  19. <div class="group-controls">
  20. <button class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
  21. <button class="btn btn-attention confirm"
  22. data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>"
  23. formaction="<?php echo _url('category', 'empty', 'id', $this->category->id()); ?>"
  24. formmethod="post"><?php echo _t('gen.action.empty'); ?></button>
  25. <?php if (!$this->category->isDefault()): ?>
  26. <button class="btn btn-attention confirm"
  27. data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>"
  28. formaction="<?php echo _url('category', 'delete', 'id', $this->category->id()); ?>"
  29. formmethod="post"><?php echo _t('gen.action.remove'); ?></button>
  30. <?php endif;?>
  31. </div>
  32. </div>
  33. </form>
  34. </div>