diff options
author | Nicolas Lœuillet <nicolas.loeuillet@gmail.com> | 2013-12-06 14:03:14 +0100 |
---|---|---|
committer | Nicolas Lœuillet <nicolas.loeuillet@gmail.com> | 2013-12-06 14:03:14 +0100 |
commit | 6cab59c3409f4edc9b309b76295cb4061bff3fd0 (patch) | |
tree | cca6eced766fcc8bc922e44ad043a193fdcafd01 /themes/default | |
parent | 2e2ebe5ec767dcbee90394d12b03298592c87805 (diff) | |
download | wallabag-6cab59c3409f4edc9b309b76295cb4061bff3fd0.tar.gz wallabag-6cab59c3409f4edc9b309b76295cb4061bff3fd0.tar.zst wallabag-6cab59c3409f4edc9b309b76295cb4061bff3fd0.zip |
[add] edit tags page
Diffstat (limited to 'themes/default')
-rw-r--r-- | themes/default/edit-tags.twig | 18 | ||||
-rw-r--r-- | themes/default/view.twig | 2 |
2 files changed, 19 insertions, 1 deletions
diff --git a/themes/default/edit-tags.twig b/themes/default/edit-tags.twig new file mode 100644 index 00000000..0bd1aba7 --- /dev/null +++ b/themes/default/edit-tags.twig | |||
@@ -0,0 +1,18 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | {% block title %}edit tags{% endblock %} | ||
3 | {% block menu %} | ||
4 | {% include '_menu.twig' %} | ||
5 | {% endblock %} | ||
6 | {% block content %} | ||
7 | {% if tags is empty %} | ||
8 | no tags | ||
9 | {% endif %} | ||
10 | <ul> | ||
11 | {% for tag in tags %}<li>{{ tag.value }} <a href="#">✘</a></li>{% endfor %} | ||
12 | </ul> | ||
13 | <form method="post" action="#"> | ||
14 | <label for="value">New tags: </label><input type="text" id="value" name="value" required="required" /> | ||
15 | {% trans "you can type several tags, separated by comma" %}<br /> | ||
16 | <input type="submit" value="add tags" /> | ||
17 | </form> | ||
18 | {% endblock %} \ No newline at end of file | ||
diff --git a/themes/default/view.twig b/themes/default/view.twig index 5a7c9165..9f9e23c8 100644 --- a/themes/default/view.twig +++ b/themes/default/view.twig | |||
@@ -21,7 +21,7 @@ | |||
21 | <h1>{{ entry.title|raw }}</h1> | 21 | <h1>{{ entry.title|raw }}</h1> |
22 | </header> | 22 | </header> |
23 | <aside class="tags"> | 23 | <aside class="tags"> |
24 | tags: {% for tag in tags %}<a href="#">{{ tag.value }}</a> {% endfor %}<a href="#" title="{% trans "edit tags" %}">✎</a> | 24 | tags: {% for tag in tags %}<a href="#">{{ tag.value }}</a> {% endfor %}<a href="./?&view=edit-tags&id={{ entry.id|e }}" title="{% trans "edit tags" %}">✎</a> |
25 | </aside> | 25 | </aside> |
26 | <article> | 26 | <article> |
27 | {{ content | raw }} | 27 | {{ content | raw }} |