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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2008-11-15 19:15:33 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20081115191533-xbt1ut2xf4fvwtvc
Tags: 1.0.1-0ubuntu1
* New upstream release:
  - Bug fixes.

* The tests/ sub-directory appaers to have been dropped upstream, so pull
  our patch to workaround the tests and modify the rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% extends "comments/base.html" %}
 
2
{% load i18n %}
2
3
 
3
 
{% block title %}Preview your comment{% endblock %}
 
4
{% block title %}{% trans "Preview your comment" %}{% endblock %}
4
5
 
5
6
{% block content %}
6
7
  {% load comments %}
7
 
  <form action="{% comment_form_target %}" method="POST">
 
8
  <form action="{% comment_form_target %}" method="post">
8
9
    {% if form.errors %}
9
 
      <h1>Please correct the error{{ form.errors|pluralize }} below</h1>
 
10
    <h1>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h1>
10
11
    {% else %}
11
 
      <h1>Preview your comment</h1>
12
 
      <blockquote>{{ comment|escape|linebreaks }}</blockquote>
 
12
    <h1>{% trans "Preview your comment" %}</h1>
 
13
      <blockquote>{{ comment|linebreaks }}</blockquote>
13
14
      <p>
14
 
        and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes:
 
15
      {% trans "and" %} <input type="submit" name="submit" class="submit-post" value="{% trans "Post your comment" %}" id="submit" /> {% trans "or make changes" %}:
15
16
      </p>
16
17
    {% endif %}
17
18
    {% for field in form %}
27
28
      {% endif %}
28
29
    {% endfor %}
29
30
    <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">
 
31
    <input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}" />
 
32
    <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}" />
32
33
    </p>
33
34
  </form>
34
 
{% endblock %}
 
 
b'\\ No newline at end of file'
 
35
{% endblock %}