mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
[add] assign and remove a tag to an entry
This commit is contained in:
parent
f778e47283
commit
c432fa1674
4 changed files with 68 additions and 4 deletions
|
@ -8,11 +8,13 @@
|
|||
no tags
|
||||
{% endif %}
|
||||
<ul>
|
||||
{% for tag in tags %}<li>{{ tag.value }} <a href="#">✘</a></li>{% endfor %}
|
||||
{% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&tag_id={{ tag.id }}&id={{ entry_id }}">✘</a></li>{% endfor %}
|
||||
</ul>
|
||||
<form method="post" action="#">
|
||||
<form method="post" action="./?action=add_tag">
|
||||
<label for="value">New tags: </label><input type="text" id="value" name="value" required="required" />
|
||||
{% trans "you can type several tags, separated by comma" %}<br />
|
||||
<p>{% trans "you can type several tags, separated by comma" %}</p>
|
||||
<input type="hidden" name="entry_id" value="{{ entry_id }}" />
|
||||
<input type="submit" value="add tags" />
|
||||
</form>
|
||||
<a href="./?view=view&id={{ entry_id }}">{% trans "back to the article" %}</a>
|
||||
{% endblock %}
|
|
@ -21,7 +21,7 @@
|
|||
<h1>{{ entry.title|raw }}</h1>
|
||||
</header>
|
||||
<aside class="tags">
|
||||
tags: {% for tag in tags %}<a href="#">{{ tag.value }}</a> {% endfor %}<a href="./?view=edit-tags&id={{ entry.id|e }}" title="{% trans "edit tags" %}">✎</a>
|
||||
tags: {% for tag in tags %}<a href="./?view=tag&id={{ tag.id }}">{{ tag.value }}</a> {% endfor %}<a href="./?view=edit-tags&id={{ entry.id|e }}" title="{% trans "edit tags" %}">✎</a>
|
||||
</aside>
|
||||
<article>
|
||||
{{ content | raw }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue