This commit is contained in:
2017-12-08 02:40:16 +03:00
parent 026658e373
commit ad4f5beb64

View File

@ -1,6 +1,6 @@
{% extends 'blog/base.html' %}
{% comment %}{% extends 'blog/base.html' %}{% endcomment %}
{% block content %}
{% comment %}{% block content %}{% endcomment %}
<div class="post">
<span class="delete"><a href='#deletionDialog';"><i class="fa fa-trash"></i></a></span>
<span class="edit"><a href="{% url 'post_edit' pk=post.pk %}"><i class="fa fa-pencil"></i></a></span>
@ -8,7 +8,7 @@
{% if post.published_date %}
<div class="date"><i class="fa fa-calendar"></i> {{ post.published_date}}</div>
{% endif %}
{% if post.tags.names %}
{% if post.tags.names %}
<div class="tag">
<i class="fa fa-tags"></i>
{% for tag in post.tags.names %}
@ -17,16 +17,16 @@
</div>
{% endif %}
<p>{{ post.text|safe|linebreaksbr }}</p>
<div id="deletionDialog" class="dialog">
<div id="deletionDialog" class="dialog">
<div>
<a class="close" href="">x</a>
<span style="margin: auto">Удалить пост "{{ post.title }}"? </span>
<form method="POST" >{% csrf_token %}
<input type=hidden name="id" value="{{ post.pk }}">
<input type=hidden name="id" value="{{ post.pk }}">
<input type="submit" name="action" value="delete" onclick="location.href = '#'">
<input type="button" value="cancel" onclick="location.href='#'">
</form>
</div>
</div>
</div>
</div>
{% endblock %}
{% comment %}{% endblock %}{% endcomment %}