aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/edit-tags.twig
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>2013-12-12 01:48:24 -0800
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>2013-12-12 01:48:24 -0800
commit05d6dd487ceaf8c00510ebe5e0e762fcc11df691 (patch)
treeebe6a344aa054a37c1c2d2e54efc59a67930e873 /themes/default/edit-tags.twig
parentd460914f65254d201911a8346792d680218c8dc3 (diff)
parent6bf4702608e4f32d66a9840ec93461f653315a76 (diff)
downloadwallabag-05d6dd487ceaf8c00510ebe5e0e762fcc11df691.tar.gz
wallabag-05d6dd487ceaf8c00510ebe5e0e762fcc11df691.tar.zst
wallabag-05d6dd487ceaf8c00510ebe5e0e762fcc11df691.zip
Merge pull request #356 from inthepoche/tags
Tags feature
Diffstat (limited to 'themes/default/edit-tags.twig')
-rw-r--r--themes/default/edit-tags.twig20
1 files changed, 20 insertions, 0 deletions
diff --git a/themes/default/edit-tags.twig b/themes/default/edit-tags.twig
new file mode 100644
index 00000000..7116bba9
--- /dev/null
+++ b/themes/default/edit-tags.twig
@@ -0,0 +1,20 @@
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 %}
8no tags
9{% endif %}
10<ul>
11{% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&amp;tag_id={{ tag.id }}&amp;id={{ entry_id }}">✘</a></li>{% endfor %}
12</ul>
13<form method="post" action="./?action=add_tag">
14 <label for="value">New tags: </label><input type="text" id="value" name="value" required="required" />
15 <p>{% trans "you can type several tags, separated by comma" %}</p>
16 <input type="hidden" name="entry_id" value="{{ entry_id }}" />
17 <input type="submit" value="add tags" />
18</form>
19<a href="./?view=view&id={{ entry_id }}">{% trans "back to the article" %}</a>
20{% endblock %} \ No newline at end of file