Ticket #8499: fieldset-2.patch

File fieldset-2.patch, 1.5 KB (added by Robert Myers, 16 years ago)

Forgot the change to revert 7576

  • django/contrib/admin/templates/admin/includes/fieldset.html

     
    22  {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %}
    33  {% if fieldset.description %}<div class="description">{{ fieldset.description|safe }}</div>{% endif %}
    44  {% for line in fieldset %}
    5       <div class="form-row{% if line.errors %} errors{% endif %} {% for field in line %}{{ field.field.name }} {% endfor %} ">
     5      <div class="form-row{% if line.errors %} error{% endif %} {% for field in line %}{{ field.field.name }} {% endfor %} ">
    66      {{ line.errors }}
    77      {% for field in line %}
    88          {% if field.is_checkbox %}
  • django/contrib/admin/media/js/admin/CollapsedFieldsets.js

     
    4747        // Returns true if any fields in the fieldset have validation errors.
    4848        var divs = fs.getElementsByTagName('div');
    4949        for (var i=0; i<divs.length; i++) {
    50             if (divs[i].className.match(/\berrors\b/)) {
     50            if (divs[i].className.match(/\berror\b/)) {
    5151                return true;
    5252            }
    5353        }
Back to Top