aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-07-25 16:51:48 +0200
committerGravatar GitHub <noreply@github.com> 2019-07-25 16:51:48 +0200
commit82611c9622ed23b0e9fcf5f9f651ddffa1fd7706 (patch)
treefc2c97fd8dd84ec30473cb85b889d8326c9a831a /app/views/helpers
parent744a9e8cf00aef7dec0acfa5f90f0dcfa2ef8837 (diff)
parent042b40eeeea77db854daab1bec96fce5c2cdd4b2 (diff)
Merge pull request #2451 from FreshRSS/dev1.14.3
FreshRSS 1.14.3
Diffstat (limited to 'app/views/helpers')
-rw-r--r--app/views/helpers/category/update.phtml34
-rw-r--r--app/views/helpers/feed/update.phtml4
2 files changed, 36 insertions, 2 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>
diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml
index be8034c0d..620806d7b 100644
--- a/app/views/helpers/feed/update.phtml
+++ b/app/views/helpers/feed/update.phtml
@@ -19,7 +19,7 @@
<form method="post" action="<?php echo _url('subscription', 'feed', 'id', $this->feed->id()); ?>" autocomplete="off">
<input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
- <legend><?php echo _t('sub.feed.informations'); ?></legend>
+ <legend><?php echo _t('sub.feed.information'); ?></legend>
<div class="form-group">
<label class="group-name" for="name"><?php echo _t('sub.feed.title'); ?></label>
<div class="group-controls">
@@ -240,7 +240,7 @@
<div class="group-controls">
<textarea name="filteractions_read" id="filteractions_read"><?php
foreach ($this->feed->filtersAction('read') as $filterRead) {
- echo htmlspecialchars($filterRead->getRawInput(), ENT_NOQUOTES, 'UTF-8'), "\n\n";
+ echo htmlspecialchars($filterRead->getRawInput(), ENT_NOQUOTES, 'UTF-8'), PHP_EOL;
}
?></textarea>
<?php echo _i('help'); ?> <?php echo _t('sub.feed.filteractions.help'); ?>