summaryrefslogtreecommitdiff
path: root/tuskar_ui/infrastructure/templates/formset_table/_row.html
blob: 5409a0b516e5af9560f78093804fdf0d62c7b691 (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
<tr{{ row.attr_string|safe }}>
  {% for cell in row %}
  <td{{ cell.attr_string|safe }}>
    {% if cell.field %}
      {{ cell.field }}
    {% 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>