2018-09-02 09:58:21 +00:00
|
|
|
{% extends "base.html" %} {% block content %} {% load taggit_templatetags2_tags %} {% get_taglist as tags for 'application.post'%}
|
2018-08-15 17:18:35 +00:00
|
|
|
|
2018-09-02 09:58:21 +00:00
|
|
|
<div id="">
|
|
|
|
<ul>
|
|
|
|
{% for tag in tags %}
|
|
|
|
<li>{{tag}}
|
2018-09-19 15:25:01 +00:00
|
|
|
<a class="btn btn-outline-dark" href="{% url 'tag_remove' tag.slug %}">
|
2018-09-02 09:58:21 +00:00
|
|
|
<span class="glyphicon glyphicon-remove">Remove</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ result }} {% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div>
|
2018-10-30 16:02:38 +00:00
|
|
|
<form class="post-form" method="post">
|
|
|
|
{% csrf_token %} {{form.as_p}}
|
|
|
|
<button type="submit" class="save btn btn-outline-dark">Save</button>
|
|
|
|
</form>
|
2018-10-24 17:04:43 +00:00
|
|
|
{% if messages %}
|
|
|
|
{% for message in messages %}
|
|
|
|
<div {% if message.tags %} class="{{ message.tags }}" {% endif %}>{{ message }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2018-07-23 05:35:45 +00:00
|
|
|
{% endblock %}
|