X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/db44e1e509986909f100e7d1d03f2967d54cbc3d..5120532d42f2130dd250ec7089d28d9d0fa2b09c:/migdal/templates/comments/migdal/entry/preview.html diff --git a/migdal/templates/comments/migdal/entry/preview.html b/migdal/templates/comments/migdal/entry/preview.html index c322f9a..6d2b5ff 100755 --- a/migdal/templates/comments/migdal/entry/preview.html +++ b/migdal/templates/comments/migdal/entry/preview.html @@ -1,51 +1,45 @@ {% extends "base.html" %} -{% load i18n %} -{% load comments %} -{% load gravatar %} +{% load comments gravatar i18n %} {% load migdal_tags markup_tags %} +{% block "main_menu" %} + {% main_menu 'object' entry %} +{% endblock "main_menu" %} + + {% block "body" %} -{% entry_begin form.target_object %} +
+
+ +{% entry_begin form.target_object 1 %} +
{{ form.target_object.body }} +
+ +{% if form.target_object.get_type.commentable %} +
+ + {% render_comment_list for form.target_object %} + +

{% trans "Preview your comment" %}

+
+ +
+ Avatar +
+
{{ form.name.value }}
+
+
{{ comment|textile_restricted_pl }}
+
+
-{% render_comment_list for form.target_object %} - - -
{% csrf_token %} - {% if next %}
{% endif %} - {% if form.errors %} -

{% blocktrans count counter=form.errors|length %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}

- {% else %} -

{% trans "Preview your comment" %}

-
- - {{ form.name.value }} -
- -
{{ comment|textile_restricted_pl }}
-

- {% trans "and" %} {% trans "or make changes" %}: -

- {% endif %} - {% for field in form %} - {% if field.is_hidden %} -
{{ field }}
- {% else %} - {% if field.errors %}{{ field.errors }}{% endif %} - - {% endif %} - {% endfor %} -

- - -

-
+ {% include "comments/form.html" %} +
+{% endif %} +
+
{% endblock %}