Ticket #8499: fieldset-2.patch
File fieldset-2.patch, 1.5 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/templates/admin/includes/fieldset.html
2 2 {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %} 3 3 {% if fieldset.description %}<div class="description">{{ fieldset.description|safe }}</div>{% endif %} 4 4 {% for line in fieldset %} 5 <div class="form-row{% if line.errors %} error s{% 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 %} "> 6 6 {{ line.errors }} 7 7 {% for field in line %} 8 8 {% if field.is_checkbox %} -
django/contrib/admin/media/js/admin/CollapsedFieldsets.js
47 47 // Returns true if any fields in the fieldset have validation errors. 48 48 var divs = fs.getElementsByTagName('div'); 49 49 for (var i=0; i<divs.length; i++) { 50 if (divs[i].className.match(/\berror s\b/)) {50 if (divs[i].className.match(/\berror\b/)) { 51 51 return true; 52 52 } 53 53 }