diff options
| author | 2020-07-23 11:31:38 +0200 | |
|---|---|---|
| committer | 2020-07-23 11:31:38 +0200 | |
| commit | 909fdaca3172c0e825c7e6268950e16bc5d3e4f3 (patch) | |
| tree | 1d71aaf56ec7d4e39b46ed669d0fb57df60eecd3 /app/views | |
| parent | 12d2baf64d3d6a1b95376460c7128a079dd1bac6 (diff) | |
Add tag management page (#3121)
The new page allows to create, delete and rename tags.
See #3058
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/tag/index.phtml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/app/views/tag/index.phtml b/app/views/tag/index.phtml new file mode 100644 index 000000000..3287506f7 --- /dev/null +++ b/app/views/tag/index.phtml @@ -0,0 +1,70 @@ +<?php $this->partial('aside_subscription'); ?> + +<div class="post"> + <a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a> + + <h2><?= _t('sub.title.add_tag') ?></h2> + <form id="add_tag" method="post" action="<?= _url('tag', 'add') ?>" autocomplete="off"> + <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> + <div class="form-group"> + <label class="group-name" for="category"><?= _t('sub.tag.name') ?></label> + <div class="group-controls"> + <input id="name" name="name" type="text" autocomplete="off"/> + </div> + </div> + + <div class="form-group form-actions"> + <div class="group-controls"> + <button type="submit" class="btn btn-important"><?= _t('gen.action.add') ?></button> + </div> + </div> + </form> + + <h2><?= _t('sub.title.rename_tag') ?></h2> + <form id="rename_tag" method="post" action="<?= _url('tag', 'rename') ?>" autocomplete="off"> + <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> + <div class="form-group"> + <label class="group-name" for="category"><?= _t('sub.tag.old_name') ?></label> + <div class="group-controls"> + <select name="id_tag" id="id_tag"> + <?php foreach ($this->tags as $tag): ?> + <option value="<?= $tag->id() ?>"><?= $tag->name() ?></option> + <?php endforeach; ?> + </select> + </div> + </div> + <div class="form-group"> + <label class="group-name" for="category"><?= _t('sub.tag.new_name') ?></label> + <div class="group-controls"> + <input id="name" name="name" type="text" autocomplete="off"/> + </div> + </div> + + <div class="form-group form-actions"> + <div class="group-controls"> + <button type="submit" class="btn btn-attention confirm"><?= _t('gen.action.rename') ?></button> + </div> + </div> + </form> + + <h2><?= _t('sub.title.delete_tag') ?></h2> + <form id="delete_tag" method="post" action="<?= _url('tag', 'delete') ?>" autocomplete="off"> + <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" /> + <div class="form-group"> + <label class="group-name" for="category"><?= _t('sub.tag.name') ?></label> + <div class="group-controls"> + <select name="id_tag" id="id_tag"> + <?php foreach ($this->tags as $tag): ?> + <option value="<?= $tag->id() ?>"><?= $tag->name() ?></option> + <?php endforeach; ?> + </select> + </div> + </div> + + <div class="form-group form-actions"> + <div class="group-controls"> + <button type="submit" class="btn btn-attention confirm"><?= _t('gen.action.remove') ?></button> + </div> + </div> + </form> +</div> |
