aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/edit-tags.twig
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas@loeuillet.org>2014-03-10 18:14:43 +0100
committerNicolas Lœuillet <nicolas@loeuillet.org>2014-03-10 18:14:43 +0100
commit1acd18510a8fc5b843bf793322ed79b249b195dc (patch)
tree8218a340193e2827e1c4b0a6117adf81344e7b43 /themes/default/edit-tags.twig
parentd47a05a9a5185e835d51341febc8257f5262ce03 (diff)
parentfb26cc9375ce9ef8df748eb473eb6e58884421c6 (diff)
downloadwallabag-1acd18510a8fc5b843bf793322ed79b249b195dc.tar.gz
wallabag-1acd18510a8fc5b843bf793322ed79b249b195dc.tar.zst
wallabag-1acd18510a8fc5b843bf793322ed79b249b195dc.zip
Merge pull request #544 from mariroz/feature-tags-autocomplete
a lot of enhancements related to tags: tags list is now sorted, shows number of articles, autocomplete added according to #477, #542
Diffstat (limited to 'themes/default/edit-tags.twig')
-rwxr-xr-x[-rw-r--r--]themes/default/edit-tags.twig10
1 files changed, 8 insertions, 2 deletions
diff --git a/themes/default/edit-tags.twig b/themes/default/edit-tags.twig
index 83f04aa0..cd6bc66f 100644..100755
--- a/themes/default/edit-tags.twig
+++ b/themes/default/edit-tags.twig
@@ -5,6 +5,10 @@
5{% endblock %} 5{% endblock %}
6{% block content %} 6{% block content %}
7 7
8<script src="{{ poche_url }}/themes/default/js/jquery-ui-1.10.4.custom.min.js"></script>
9<script src="{{ poche_url }}/themes/default/js/autoCompleteTags.js"></script>
10<link rel="stylesheet" href="{{ poche_url }}/themes/default/css/jquery-ui-1.10.4.custom.min.css" media="all">
11
8<div id="article"> 12<div id="article">
9 <header class="mbm"> 13 <header class="mbm">
10 <h1>{{ entry.title|raw }}</h1> 14 <h1>{{ entry.title|raw }}</h1>
@@ -17,13 +21,15 @@ no tags
17<ul> 21<ul>
18{% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&amp;tag_id={{ tag.id }}&amp;id={{ entry_id }}">✘</a></li>{% endfor %} 22{% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&amp;tag_id={{ tag.id }}&amp;id={{ entry_id }}">✘</a></li>{% endfor %}
19</ul> 23</ul>
20<form method="post" action="./?action=add_tag"> 24<form method="post" action="./?action=add_tag" id="editTags">
21 <input type="hidden" name="entry_id" value="{{ entry_id }}" /> 25 <input type="hidden" name="entry_id" value="{{ entry_id }}" />
22 <label for="value">Add tags: </label> 26 <label for="value">Add tags: </label>
23 <input type="text" placeholder="interview, editorial, video" id="value" name="value" required="required" /> 27 <input type="text" placeholder="interview, editorial, video" id="value" name="value" required="required" />
24 <input type="submit" value="Tag" /> 28 <input type="submit" value="Tag" />
25 <p>{% trans "You can enter multiple tags, separated by commas." %}</p> 29 <p>{% trans "Start typing for auto complete." %}<br>
30 {% trans "You can enter multiple tags, separated by commas." %}</p>
26 31
27</form> 32</form>
33<br>
28<a href="./?view=view&id={{ entry_id }}">&laquo; {% trans "return to article" %}</a> 34<a href="./?view=view&id={{ entry_id }}">&laquo; {% trans "return to article" %}</a>
29{% endblock %} 35{% endblock %}