2013-12-06 08:03:14 -05:00
|
|
|
{% extends "layout.twig" %}
|
|
|
|
{% block title %}edit tags{% endblock %}
|
|
|
|
{% block menu %}
|
|
|
|
{% include '_menu.twig' %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
2014-02-20 12:28:39 -05:00
|
|
|
|
2014-03-28 05:26:48 -04:00
|
|
|
<script src="{{ poche_url }}themes/default/js/jquery-ui-1.10.4.custom.min.js"></script>
|
|
|
|
<script src="{{ poche_url }}themes/default/js/autoCompleteTags.js"></script>
|
|
|
|
<link rel="stylesheet" href="{{ poche_url }}themes/default/css/jquery-ui-1.10.4.custom.min.css" media="all">
|
2014-03-10 10:28:47 -04:00
|
|
|
|
2014-02-20 12:28:39 -05:00
|
|
|
<div id="article">
|
|
|
|
<header class="mbm">
|
|
|
|
<h1>{{ entry.title|raw }}</h1>
|
|
|
|
</header>
|
|
|
|
</div>
|
|
|
|
|
2013-12-06 08:03:14 -05:00
|
|
|
{% if tags is empty %}
|
2014-10-27 09:00:47 -04:00
|
|
|
{% trans "no tags" %}
|
2013-12-06 08:03:14 -05:00
|
|
|
{% endif %}
|
|
|
|
<ul>
|
2013-12-06 09:07:51 -05:00
|
|
|
{% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&tag_id={{ tag.id }}&id={{ entry_id }}">✘</a></li>{% endfor %}
|
2013-12-06 08:03:14 -05:00
|
|
|
</ul>
|
2014-03-10 10:28:47 -04:00
|
|
|
<form method="post" action="./?action=add_tag" id="editTags">
|
2013-12-06 09:07:51 -05:00
|
|
|
<input type="hidden" name="entry_id" value="{{ entry_id }}" />
|
2014-10-27 09:00:47 -04:00
|
|
|
<label for="value">{% trans "Add tags:" %}</label>
|
|
|
|
<input type="text" placeholder="{% trans "interview" %}, {% trans "editorial" %}, {% trans "video" %}" id="value" name="value" required="required" />
|
2014-01-02 21:04:56 -05:00
|
|
|
<input type="submit" value="Tag" />
|
2014-03-10 10:28:47 -04:00
|
|
|
<p>{% trans "Start typing for auto complete." %}<br>
|
|
|
|
{% trans "You can enter multiple tags, separated by commas." %}</p>
|
2014-02-20 12:28:39 -05:00
|
|
|
|
2013-12-06 08:03:14 -05:00
|
|
|
</form>
|
2014-03-10 10:28:47 -04:00
|
|
|
<br>
|
2014-02-20 12:28:39 -05:00
|
|
|
<a href="./?view=view&id={{ entry_id }}">« {% trans "return to article" %}</a>
|
2014-01-02 21:04:56 -05:00
|
|
|
{% endblock %}
|