Ticket #8855: comments-form.html.diff

File comments-form.html.diff, 983 bytes (added by zgoda, 7 years ago)

Comment form fixes

  • django/contrib/comments/templates/comments/form.html

     
    11{% load comments %}
    2 <form action="{% comment_form_target %}" method="POST">
     2{% load i18n %}
     3<form action="{% comment_form_target %}" method="post">
    34  {% for field in form %}
    45    {% if field.is_hidden %}
    56      {{ field }}
     
    1314    {% endif %}
    1415  {% endfor %}
    1516  <p class="submit">
    16     <input type="submit" name="submit" class="submit-post" value="Post">
    17     <input type="submit" name="submit" class="submit-preview" value="Preview">
     17    <input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}" />
     18    <input type="submit" name="submit" class="submit-preview" value="{% trans "Preview" %}" />
    1819  </p>
    19 </form>
    20  No newline at end of file
     20</form>
Back to Top