blob: fb6dda14cf01ad231717dad4a232e6ab87b95cc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<tr{{ row.attr_string|safe }}>
{% for cell in row %}
<td{{ cell.attr_string|safe }}>
{% if cell.field %}
{{ cell.field }}
{% for error in cell.field.errors %}
<span class="help-inline">{{ error }}</span>
{% endfor %}
{% else %}
{%if cell.wrap_list %}<ul>{% endif %}{{ cell.value }}{%if cell.wrap_list %}</ul>{% endif %}
{% endif %}
{% if forloop.first %}
{% for field in row.form.hidden_fields %}
{{ field }}
{% for error in field.errors %}
<span class="help-inline">{{ field.name }}: {{ error }}</span>
{% endfor %}
{% endfor %}
{% if row.form.non_field_errors %}
<div class="alert alert-error">
{{ row.form.non_field_errors }}
</div>
{% endif %}
{% endif %}
</td>
{% endfor %}
</tr>
|