| 1 |
{% extends "base.html" %} |
|---|
| 2 |
|
|---|
| 3 |
{% load i18n %} |
|---|
| 4 |
|
|---|
| 5 |
{% block title %}{% trans "Preview comment" %} | {{ block.super }}{% endblock %} |
|---|
| 6 |
|
|---|
| 7 |
{% block content %} |
|---|
| 8 |
|
|---|
| 9 |
<h1>{% trans "Preview your comment" %}</h1> |
|---|
| 10 |
|
|---|
| 11 |
<form action="../postfree/" method="post"> |
|---|
| 12 |
{% if comment_form.has_errors %} |
|---|
| 13 |
<h2 class="error">{% trans "Please correct the following errors" %}</h2> |
|---|
| 14 |
{% else %} |
|---|
| 15 |
<fieldset> |
|---|
| 16 |
<div class="comment"> |
|---|
| 17 |
{{ comment.comment|escape|urlizetrunc:"40"|linebreaks }} |
|---|
| 18 |
<p class="date small">Posted by <strong>{{ comment.person_name }}</strong></p> |
|---|
| 19 |
</div> |
|---|
| 20 |
|
|---|
| 21 |
<input type="submit" name="post" value="Post public comment" /> |
|---|
| 22 |
</fieldset> |
|---|
| 23 |
|
|---|
| 24 |
<h2>{% trans "Or edit it again" %}</h2> |
|---|
| 25 |
{% endif %} |
|---|
| 26 |
<fieldset> |
|---|
| 27 |
{% if comment_form.person_name.errors %} |
|---|
| 28 |
{{ comment_form.person_name.html_error_list }} |
|---|
| 29 |
{% endif %} |
|---|
| 30 |
|
|---|
| 31 |
<dl> |
|---|
| 32 |
<dt><label for="id_person_name">{% trans "Your name" %}:</label></dt> |
|---|
| 33 |
<dd>{{ comment_form.person_name }}</dd> |
|---|
| 34 |
</dl> |
|---|
| 35 |
|
|---|
| 36 |
{% if comment_form.comment.errors %} |
|---|
| 37 |
{{ comment_form.comment.html_error_list }} |
|---|
| 38 |
{% endif %} |
|---|
| 39 |
|
|---|
| 40 |
<dl> |
|---|
| 41 |
<dt><label for="id_comment">{% trans "Comment" %}:</label></dt> |
|---|
| 42 |
<dd>{{ comment_form.comment }}</dd> |
|---|
| 43 |
</dl> |
|---|
| 44 |
|
|---|
| 45 |
<input type="hidden" name="options" value="{{ options }}" /> |
|---|
| 46 |
<input type="hidden" name="target" value="{{ target }}" /> |
|---|
| 47 |
<input type="hidden" name="gonzo" value="{{ hash }}" /> |
|---|
| 48 |
|
|---|
| 49 |
<input type="submit" name="preview" value="{% trans "Preview revised comment" %}" /> |
|---|
| 50 |
</fieldset> |
|---|
| 51 |
</form> |
|---|
| 52 |
{% endblock %} |
|---|