~ubuntu-branches/ubuntu/quantal/python-django/quantal

« back to all changes in this revision

Viewing changes to django/contrib/comments/templates/comments/reply_preview.html

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant, Eddy Mulyono
  • Date: 2008-09-16 12:18:47 UTC
  • mfrom: (1.1.5 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080916121847-mg225rg5mnsdqzr0
Tags: 1.0-1ubuntu1
* Merge from Debian (LP: #264191), remaining changes:
  - Run test suite on build.

[Eddy Mulyono]
* Update patch to workaround network test case failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "comments/base.html" %}
 
2
 
 
3
{% block title %}Preview your comment{% endblock %}
 
4
 
 
5
{% block content %}
 
6
  {% load comments %}
 
7
  <form action="{% comment_form_target %}" method="POST">
 
8
    {% if form.errors %}
 
9
      <h1>Please correct the error{{ form.errors|pluralize }} below</h1>
 
10
    {% else %}
 
11
      <h1>Preview your comment</h1>
 
12
      <blockquote>{{ comment|escape|linebreaks }}</blockquote>
 
13
      <p>
 
14
        and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes:
 
15
      </p>
 
16
    {% endif %}
 
17
    {% for field in form %}
 
18
      {% if field.is_hidden %}
 
19
        {{ field }}
 
20
      {% else %}
 
21
        <p
 
22
          {% if field.errors %} class="error"{% endif %}
 
23
          {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
 
24
          {% if field.errors %}{{ field.errors }}{% endif %}
 
25
          {{ field.label_tag }} {{ field }}
 
26
        </p>
 
27
      {% endif %}
 
28
    {% endfor %}
 
29
    <p class="submit">
 
30
      <input type="submit" name="submit" class="submit-post" value="Post">
 
31
      <input type="submit" name="submit" class="submit-preview" value="Preview">
 
32
    </p>
 
33
  </form>
 
34
{% endblock %}