]> git.immae.eu Git - github/wallabag/wallabag.git/blame - themes/default/edit-tags.twig
a lot of refactoring: tag action is now handled by home view and uses sorting and...
[github/wallabag/wallabag.git] / themes / default / edit-tags.twig
CommitLineData
6cab59c3
NL
1{% extends "layout.twig" %}
2{% block title %}edit tags{% endblock %}
3{% block menu %}
4{% include '_menu.twig' %}
5{% endblock %}
6{% block content %}
032e0ca1
MR
7
8<div id="article">
9 <header class="mbm">
10 <h1>{{ entry.title|raw }}</h1>
11 </header>
12</div>
13
6cab59c3
NL
14{% if tags is empty %}
15no tags
16{% endif %}
17<ul>
c432fa16 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 %}
6cab59c3 19</ul>
c432fa16 20<form method="post" action="./?action=add_tag">
c432fa16 21 <input type="hidden" name="entry_id" value="{{ entry_id }}" />
032e0ca1
MR
22 <label for="value">Add tags: </label>
23 <input type="text" placeholder="interview, editorial, video" id="value" name="value" required="required" />
b1bfd4cb 24 <input type="submit" value="Tag" />
032e0ca1
MR
25 <p>{% trans "You can enter multiple tags, separated by commas." %}</p>
26
6cab59c3 27</form>
032e0ca1 28<a href="./?view=view&id={{ entry_id }}">&laquo; {% trans "return to article" %}</a>
b1bfd4cb 29{% endblock %}