diff options
author | lxf <sng@luxagraf.net> | 2021-11-06 09:42:47 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2021-11-06 09:42:47 -0400 |
commit | d9f51299809bfb6b3ac589b7c42016d0ef240299 (patch) | |
tree | aa5f945e82fdbf1b66aca82fe5122f6ff5a12eb9 /templates/comments/preview.html | |
parent | dde9914dbbc6cda18ba59024065727c8dc6bcdf4 (diff) |
moved templates to top level directory
Diffstat (limited to 'templates/comments/preview.html')
-rw-r--r-- | templates/comments/preview.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/templates/comments/preview.html b/templates/comments/preview.html new file mode 100644 index 0000000..9e27c81 --- /dev/null +++ b/templates/comments/preview.html @@ -0,0 +1,47 @@ +{% extends "base.html" %} +{% load i18n %} + +{%block htmlclass%} +class="detail"{%endblock%} + + +{% block primary %} +<main> + <article class="content"> + <header class="post-header"> + <h1 class="post-title">{% trans "Preview your comment" %}</h1> + </header> + + {% load comments %} +<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 btn" value="{% trans "Post your comment" %}" id="submit" /> <h3>{% trans "Or make changes" %}:</h3> + </p> + {% endif %} + {% for field in form %} + {% if field.is_hidden %} + {{ field }} + {% else %} + <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 %} + <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 %} |