Ticket #11277: 11277-admin-hiddeninput-fieldset.html.diff
File 11277-admin-hiddeninput-fieldset.html.diff, 1002 bytes (added by , 14 years ago) |
---|
-
django/contrib/admin/templates/admin/includes/fieldset.html
4 4 <div class="description">{{ fieldset.description|safe }}</div> 5 5 {% endif %} 6 6 {% for line in fieldset %} 7 {% if not line.has_hidden_field %} 7 8 <div class="form-row{% if line.fields|length_is:'1' and line.errors %} errors{% endif %}{% for field in line %} {{ field.field.name }}{% endfor %}"> 8 9 {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %} 9 10 {% for field in line %} … … 25 26 </div> 26 27 {% endfor %} 27 28 </div> 29 {% else %} 30 {% for field in line %} 31 {{ field.field }} 32 {% endfor %} 33 {% endif %} 28 34 {% endfor %} 29 35 </fieldset>