summaryrefslogtreecommitdiff
path: root/design/templates/comments/preview.html
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/comments/preview.html')
-rw-r--r--design/templates/comments/preview.html52
1 files changed, 30 insertions, 22 deletions
diff --git a/design/templates/comments/preview.html b/design/templates/comments/preview.html
index 663b5ca..58eba01 100644
--- a/design/templates/comments/preview.html
+++ b/design/templates/comments/preview.html
@@ -1,30 +1,38 @@
-{% extends "comments/base.html" %}{% load i18n crispy_forms_tags comments %}
+{% extends "base.html" %}
+{% load i18n %}
-{% block title %}{% trans "Preview your comment" %}{% endblock %}
-{% block content %}
- <form action="{% comment_form_target %}" method="post" class="form-horizontal">{% csrf_token %}
- {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %}
+{% block primary %}
+ <main role="main" class="archive">
+ <h1 class="comment--form--header-h1">{% trans "Preview your comment" %}</h1>
+ {% load comments %}
+ <form action="{% comment_form_target %}" method="post" class="cform-arc comment--form">{% csrf_token %}
+ {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %}
{% if form.errors %}
- <h2>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h2>
+ <h1>{% if form.errors|length == 1 %}{% trans "Please correct the error below" %}{% else %}{% trans "Please correct the errors below" %}{% endif %}</h1>
{% else %}
- <h2>{% trans "Preview of your comment" %}</h2>
-
- <blockquote class="comment-preview">{{ comment|linebreaks }}</blockquote>
-
- <div class="form-actions">
- <input type="submit" name="submit" class="btn btn-primary" value="{% trans "Post your comment" %}" id="submit" />
- </div>
-
- <p>{% trans "Or make changes" %}:</p>
+ <blockquote>{{ comment|linebreaks }}</blockquote>
+ <p>
+ <input type="submit" name="submit" class="submit-post" value="{% trans "Post your comment" %}" id="submit" /> <h3>{% trans "Or make changes" %}:</h3>
+ </p>
{% endif %}
-
- {{ form|crispy }}
-
- <div class="form-actions">
- <input type="submit" name="post" class="btn btn-primary" value="{% trans "Post" %}" />
- <input type="submit" name="preview" class="btn" value="{% trans "Preview" %}" />
- </div>
+ {% for field in form %}
+ {% if field.is_hidden %}
+ <div>{{ field }}</div>
+ {% else %}
+ {% if field.errors %}{{ field.errors }}{% endif %}
+ <p
+ {% if field.errors %} class="error"{% endif %}
+ {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
+ {{ field.label_tag }} {{ field }}
+ </p>
+ {% endif %}
+ {% endfor %}
+ <p class="submit">
+ <input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}" />
+ <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}" />
+ </p>
</form>
+ </main>
{% endblock %}