summaryrefslogtreecommitdiff
path: root/design/templates/comments
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2019-03-22 20:33:57 +0000
committerlxf <sng@luxagraf.net>2019-03-22 20:33:57 +0000
commitc90253c1ad4835e43bc28781c9af9ee1eed98e4a (patch)
tree73ad5ab70be7e668950f771599ba7f7ba8f96476 /design/templates/comments
parent6c7a54a374db6894c9cf0cf2416c2470bf46fe44 (diff)
fixed comment preview template and latest redirect
Diffstat (limited to 'design/templates/comments')
-rw-r--r--design/templates/comments/preview.html29
1 files changed, 16 insertions, 13 deletions
diff --git a/design/templates/comments/preview.html b/design/templates/comments/preview.html
index 8129658..164b724 100644
--- a/design/templates/comments/preview.html
+++ b/design/templates/comments/preview.html
@@ -11,34 +11,37 @@ class="detail"{%endblock%}
<header class="post-header">
<h1 class="post-title">{% trans "Preview your comment" %}</h1>
</header>
+
{% load comments %}
- <form action="{% comment_form_target %}" method="post" class="cform-arc comment--form" style="margin-left: 0;">{% csrf_token %}
+<div class="comment--form--wrapper">
+<div class="comment--form--header">
+ <form action="{% comment_form_target %}" method="post" class="comment--form" style="margin-left: 0;">{% csrf_token %}
{% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %}
{% if form.errors %}
<h3>{% if form.errors|length == 1 %}{% trans "Please correct the error below" %}{% else %}{% trans "Please correct the errors below" %}{% endif %}</h3>
{% else %}
<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>
+ <input type="submit" name="submit" class="submit-post btn" value="{% trans "Post your comment" %}" id="submit" /> <h3>{% trans "Or make changes" %}:</h3>
</p>
{% endif %}
{% for field in form %}
{% if field.is_hidden %}
- <div>{{ field }}</div>
+ {{ field }}
{% 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>
+ <fieldset {% if field.errors %} class="error"{% endif %} {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
+ {{ field.label_tag }}
+ {%ifequal field.name "comment"%}<div class="textarea-rounded">{{ field }}</div>{%else%}{{field}}{%endifequal%}
+ </fieldset>
{% 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>
+ <div class="submit">
+ <input type="submit" name="post" class="submit-post btn" value="{% trans "Post" %}" />
+ <input type="submit" name="preview" class="submit-preview btn" value="{% trans "Preview" %}" />
+ </div>
</form>
+ </div>
+ </div>
</article>
</main>
{% endblock %}