update.phtml 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  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() ; ?>" />
  13. </div>
  14. </div>
  15. <div class="form-group form-actions">
  16. <div class="group-controls">
  17. <button class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
  18. <button class="btn btn-attention confirm"
  19. data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>"
  20. formaction="<?php echo _url('category', 'empty', 'id', $this->category->id()); ?>"
  21. formmethod="post"><?php echo _t('gen.action.empty'); ?></button>
  22. <?php if (!$this->category->isDefault()): ?>
  23. <button class="btn btn-attention confirm"
  24. data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>"
  25. formaction="<?php echo _url('category', 'delete', 'id', $this->category->id()); ?>"
  26. formmethod="post"><?php echo _t('gen.action.remove'); ?></button>
  27. <?php endif;?>
  28. </div>
  29. </div>
  30. </form>
  31. </div>