diff options
| author | 2019-06-21 08:42:06 +0200 | |
|---|---|---|
| committer | 2019-06-21 08:42:06 +0200 | |
| commit | 2decc82c3eaeaf205295667e836087f309156822 (patch) | |
| tree | 7a93066acdb15e57b695a4627b1278b771e8417c /app/views/helpers/category/update.phtml | |
| parent | 6cc73d03c34214755d571faba9b3617776021c1c (diff) | |
Change category configuration (#2410)
* Change category configuration
Before, we had a drop-down list to interract on categories. It was not
working the same way as feeds.
Now, categories and feeds behave in a similar manner. At the moment,
there is no change in features but it will allow to expand them.
See #2369
* Minor whitespace
Diffstat (limited to 'app/views/helpers/category/update.phtml')
| -rw-r--r-- | app/views/helpers/category/update.phtml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app/views/helpers/category/update.phtml b/app/views/helpers/category/update.phtml new file mode 100644 index 000000000..a2ee3e2ef --- /dev/null +++ b/app/views/helpers/category/update.phtml @@ -0,0 +1,34 @@ +<div class="post"> + <h1><?php echo $this->category->name(); ?></h1> + + <div> + <a href="<?php echo _url('index', 'index', 'get', 'c_' . $this->category->id()); ?>"><?php echo _i('link'); ?> <?php echo _t('gen.action.filter'); ?></a> + </div> + + <form method="post" action="<?php echo _url('subscription', 'category', 'id', $this->category->id()); ?>" autocomplete="off"> + <input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" /> + <legend><?php echo _t('sub.category.information'); ?></legend> + <div class="form-group"> + <label class="group-name" for="name"><?php echo _t('sub.category.title'); ?></label> + <div class="group-controls"> + <input type="text" name="name" id="name" class="extend" value="<?php echo $this->category->name() ; ?>" /> + </div> + </div> + + <div class="form-group form-actions"> + <div class="group-controls"> + <button class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button> + <button class="btn btn-attention confirm" + data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>" + formaction="<?php echo _url('category', 'empty', 'id', $this->category->id()); ?>" + formmethod="post"><?php echo _t('gen.action.empty'); ?></button> + <?php if (!$this->category->isDefault()): ?> + <button class="btn btn-attention confirm" + data-str-confirm="<?php echo _t('gen.js.confirm_action_feed_cat'); ?>" + formaction="<?php echo _url('category', 'delete', 'id', $this->category->id()); ?>" + formmethod="post"><?php echo _t('gen.action.remove'); ?></button> + <?php endif;?> + </div> + </div> + </form> +</div> |
