aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>2013-12-06 15:07:51 +0100
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>2013-12-06 15:07:51 +0100
commitc432fa1674fbe2b190cf0d0bab2e90302a61e98f (patch)
tree731e876604ece7f35cebdb8a9e80f5b520f21b75 /themes
parentf778e47283c9691d2992045e0fbcdfc6685f157f (diff)
downloadwallabag-c432fa1674fbe2b190cf0d0bab2e90302a61e98f.tar.gz
wallabag-c432fa1674fbe2b190cf0d0bab2e90302a61e98f.tar.zst
wallabag-c432fa1674fbe2b190cf0d0bab2e90302a61e98f.zip
[add] assign and remove a tag to an entry
Diffstat (limited to 'themes')
-rw-r--r--themes/default/edit-tags.twig8
-rw-r--r--themes/default/view.twig2
2 files changed, 6 insertions, 4 deletions
diff --git a/themes/default/edit-tags.twig b/themes/default/edit-tags.twig
index 0bd1aba7..7116bba9 100644
--- a/themes/default/edit-tags.twig
+++ b/themes/default/edit-tags.twig
@@ -8,11 +8,13 @@
8no tags 8no tags
9{% endif %} 9{% endif %}
10<ul> 10<ul>
11{% for tag in tags %}<li>{{ tag.value }} <a href="#">✘</a></li>{% endfor %} 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> 12</ul>
13<form method="post" action="#"> 13<form method="post" action="./?action=add_tag">
14 <label for="value">New tags: </label><input type="text" id="value" name="value" required="required" /> 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 /> 15 <p>{% trans "you can type several tags, separated by comma" %}</p>
16 <input type="hidden" name="entry_id" value="{{ entry_id }}" />
16 <input type="submit" value="add tags" /> 17 <input type="submit" value="add tags" />
17</form> 18</form>
19<a href="./?view=view&id={{ entry_id }}">{% trans "back to the article" %}</a>
18{% endblock %} \ No newline at end of file 20{% endblock %} \ No newline at end of file
diff --git a/themes/default/view.twig b/themes/default/view.twig
index 7e096a95..64672b61 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="./?view=edit-tags&amp;id={{ entry.id|e }}" title="{% trans "edit tags" %}">✎</a> 24 tags: {% for tag in tags %}<a href="./?view=tag&amp;id={{ tag.id }}">{{ tag.value }}</a> {% endfor %}<a href="./?view=edit-tags&amp;id={{ entry.id|e }}" title="{% trans "edit tags" %}">✎</a>
25 </aside> 25 </aside>
26 <article> 26 <article>
27 {{ content | raw }} 27 {{ content | raw }}