aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-05 22:12:08 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-05 22:12:08 +0100
commit0e4274fc006203d23b632f4a7a7593427729d649 (patch)
treea1fbf80826c39a8d6ba2b6a7f5bf01510bfa3156 /app/views
parente4cf8a7396d5da06b44a803ce2843361b1077f91 (diff)
Permet de supprimer les articles d'un flux
Implémente https://github.com/marienfressinaud/FreshRSS/issues/311
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/feed.phtml24
1 files changed, 15 insertions, 9 deletions
diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml
index 1fb0368de..de019863e 100644
--- a/app/views/configure/feed.phtml
+++ b/app/views/configure/feed.phtml
@@ -40,6 +40,18 @@
</div>
</div>
<div class="form-group">
+ <label class="group-name" for="category"><?php echo Translate::t ('category'); ?></label>
+ <div class="group-controls">
+ <select name="category" id="category">
+ <?php foreach ($this->categories as $cat) { ?>
+ <option value="<?php echo $cat->id (); ?>"<?php echo $cat->id ()== $this->flux->category () ? ' selected="selected"' : ''; ?>>
+ <?php echo $cat->name (); ?>
+ </option>
+ <?php } ?>
+ </select>
+ </div>
+ </div>
+ <div class="form-group">
<label class="group-name"></label>
<div class="group-controls">
<a class="btn" href="<?php echo _url ('feed', 'actualize', 'id', $this->flux->id ()); ?>">
@@ -59,15 +71,9 @@
</div>
<div class="form-group">
- <label class="group-name" for="category"><?php echo Translate::t ('category'); ?></label>
+ <label class="group-name"></label>
<div class="group-controls">
- <select name="category" id="category">
- <?php foreach ($this->categories as $cat) { ?>
- <option value="<?php echo $cat->id (); ?>"<?php echo $cat->id ()== $this->flux->category () ? ' selected="selected"' : ''; ?>>
- <?php echo $cat->name (); ?>
- </option>
- <?php } ?>
- </select>
+ <button class="btn btn-attention confirm" formmethod="post" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'truncate', 'params' => array ('id' => $this->flux->id ()))); ?>"><?php echo Translate::t ('truncate'); ?></button>
</div>
</div>
@@ -107,7 +113,7 @@
<div class="form-group form-actions">
<div class="group-controls">
<button class="btn btn-important"><?php echo Translate::t ('save'); ?></button>
- <button class="btn btn-attention confirm" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>"><?php echo Translate::t ('delete'); ?></button>
+ <button class="btn btn-attention confirm" formmethod="post" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>"><?php echo Translate::t ('delete'); ?></button>
</div>
</div>
</form>