aboutsummaryrefslogtreecommitdiff
path: root/app/views/configure/categorize.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-30 15:44:45 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-30 15:44:45 +0200
commit9e0a62727f8ff3c6a68b4ef85089633677ff67ef (patch)
tree72b2065f0f3e0fb3943ba0e6e98a7aaf673c4aa0 /app/views/configure/categorize.phtml
parentedb02c8fefdb292c96d7b37ad4e2c311e9d43b44 (diff)
Move empty cat action in the new Controller
feedController::delete is simpler than before. Improve coding style See https://github.com/marienfressinaud/FreshRSS/issues/646
Diffstat (limited to 'app/views/configure/categorize.phtml')
-rw-r--r--app/views/configure/categorize.phtml8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/configure/categorize.phtml b/app/views/configure/categorize.phtml
index e7435e1c7..2d9dd65ca 100644
--- a/app/views/configure/categorize.phtml
+++ b/app/views/configure/categorize.phtml
@@ -1,7 +1,6 @@
<?php $this->partial('aside_feed'); ?>
<div>
- <form id="configure-categorize" method="post" style="display: none;"></form>
<div class="box">
<div class="box-title"><label for="new-category"><?php echo _t('add_category'); ?></label></div>
@@ -14,6 +13,8 @@
</div>
</div>
+ <form id="controller-category" method="post" style="display: none;"></form>
+
<?php
foreach ($this->categories as $cat) {
$feeds = $cat->feeds();
@@ -32,8 +33,9 @@
<button class="as-link confirm"
data-str-confirm="<?php echo _t('confirm_action_feed_cat'); ?>"
type="submit"
- form="configure-categorize"
- formaction="<?php echo _url('feed', 'delete', 'id', $cat->id(), 'type', 'category'); ?>"><?php echo _t('ask_empty'); ?></button>
+ form="controller-category"
+ formaction="<?php echo _url('category', 'empty', 'id', $cat->id()); ?>">
+ <?php echo _t('ask_empty'); ?></button>
</li>
<li class="item"><a href=""><?php echo _t('delete'); ?></a></li>
</ul>