]>
Commit | Line | Data |
---|---|---|
6cab59c3 NL |
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 %} | |
8 | no tags | |
9 | {% endif %} | |
10 | <ul> | |
c432fa16 | 11 | {% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&tag_id={{ tag.id }}&id={{ entry_id }}">✘</a></li>{% endfor %} |
6cab59c3 | 12 | </ul> |
c432fa16 | 13 | <form method="post" action="./?action=add_tag"> |
6cab59c3 | 14 | <label for="value">New tags: </label><input type="text" id="value" name="value" required="required" /> |
c432fa16 NL |
15 | <p>{% trans "you can type several tags, separated by comma" %}</p> |
16 | <input type="hidden" name="entry_id" value="{{ entry_id }}" /> | |
6cab59c3 NL |
17 | <input type="submit" value="add tags" /> |
18 | </form> | |
c432fa16 | 19 | <a href="./?view=view&id={{ entry_id }}">{% trans "back to the article" %}</a> |
6cab59c3 | 20 | {% endblock %} |