1 {% extends "layout.twig" %}
2 {% block title %}edit tags{% endblock %}
4 {% include '_menu.twig' %}
10 <h1>{{ entry.title|raw }}</h1>
14 {% if tags is empty %}
18 {% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&tag_id={{ tag.id }}&id={{ entry_id }}">✘</a></li>{% endfor %}
20 <form method="post" action="./?action=add_tag">
21 <input type="hidden" name="entry_id" value="{{ entry_id }}" />
22 <label for="value">Add tags: </label>
23 <input type="text" placeholder="interview, editorial, video" id="value" name="value" required="required" />
24 <input type="submit" value="Tag" />
25 <p>{% trans "You can enter multiple tags, separated by commas." %}</p>
28 <a href="./?view=view&id={{ entry_id }}">« {% trans "return to article" %}</a>