aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/edit-tags.twig
diff options
context:
space:
mode:
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-03-10 16:28:47 +0200
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>2014-03-10 16:28:47 +0200
commitfb26cc9375ce9ef8df748eb473eb6e58884421c6 (patch)
tree3b1ac9bf4b1eb95c4ca91c02b447350516b8ad84 /themes/default/edit-tags.twig
parent17b2afefad1947042cc9fbbb841c3a023d00d96d (diff)
downloadwallabag-fb26cc9375ce9ef8df748eb473eb6e58884421c6.tar.gz
wallabag-fb26cc9375ce9ef8df748eb473eb6e58884421c6.tar.zst
wallabag-fb26cc9375ce9ef8df748eb473eb6e58884421c6.zip
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 %}