Ticket #9792: 9792.diff

File 9792.diff, 1.4 KB (added by izibi, 15 years ago)
  • trunk/django/contrib/comments/templates/comments/preview.html

     
    1919      {% if field.is_hidden %}
    2020        {{ field }}
    2121      {% else %}
     22        {% if field.errors %} class="error"{% endif %}
    2223        <p
    23           {% if field.errors %} class="error"{% endif %}
    2424          {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
    2525          {% if field.errors %}{{ field.errors }}{% endif %}
    2626          {{ field.label_tag }} {{ field }}
  • trunk/django/contrib/comments/templates/comments/form.html

     
    44    {% if field.is_hidden %}
    55      {{ field }}
    66    {% else %}
     7      {% if field.errors %}{{ field.errors }}{% endif %}
    78      <p
    89        {% if field.errors %} class="error"{% endif %}
    910        {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
    10         {% if field.errors %}{{ field.errors }}{% endif %}
    1111        {{ field.label_tag }} {{ field }}
    1212      </p>
    1313    {% endif %}
Back to Top