]>
Commit | Line | Data |
---|---|---|
1 | {% extends "layout.twig" %} | |
2 | {% block title %}edit tags{% endblock %} | |
3 | {% block menu %} | |
4 | {% include '_menu.twig' %} | |
5 | {% endblock %} | |
6 | {% block content %} | |
7 | ||
8 | <script src="{{ poche_url }}themes/_global/js/jquery-ui-1.10.4.custom.min.js"></script> | |
9 | <script src="{{ poche_url }}themes/_global/js/autoCompleteTags.js"></script> | |
10 | <link rel="stylesheet" href="{{ poche_url }}themes/_global/css/jquery-ui-1.10.4.custom.min.css" media="all"> | |
11 | ||
12 | <div id="article"> | |
13 | <header class="mbm"> | |
14 | <h1>{{ entry.title|raw }}</h1> | |
15 | </header> | |
16 | </div> | |
17 | ||
18 | {% if tags is empty %} | |
19 | {% trans "no tags" %} | |
20 | {% endif %} | |
21 | <ul> | |
22 | {% for tag in tags %}<li><span class="alreadytagged">{{ tag.value }}</span> <a href="./?action=remove_tag&tag_id={{ tag.id }}&id={{ entry_id }}">✘</a></li>{% endfor %} | |
23 | </ul> | |
24 | <form method="post" action="./?action=add_tag" id="editTags"> | |
25 | <input type="hidden" name="entry_id" value="{{ entry_id }}" /> | |
26 | <label for="value">{% trans "Add tags:" %}</label> | |
27 | <input type="text" placeholder="{% trans "interview" %}, {% trans "editorial" %}, {% trans "video" %}" id="value" name="value" required="required" /> | |
28 | <input type="submit" value="Tag" /> | |
29 | <p>{% trans "Start typing for auto complete." %}<br> | |
30 | {% trans "You can enter multiple tags, separated by commas." %}</p> | |
31 | ||
32 | </form> | |
33 | All existing tags : | |
34 | <ul id="tagcloud">{% for eachtag in alltags %}<li class="suggestedtag {{ eachtag.cssclass }}">{{ eachtag.value }}</li>{% endfor %}</ul> | |
35 | <a href="./?view=view&id={{ entry_id }}">« {% trans "return to article" %}</a> | |
36 | {% endblock %} |