1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | {%for f in form.management_form%}
{{f}}
{%endfor%}
<table>
<tr>
{% for field in form.forms.0 %}
{% if not field.is_hidden %}
<th>{{field.label}}</th>
{% endif %}
{% endfor %}
</tr>
{%for f in form.forms%}
<tr>
{%for field in f%}
{% if not field.is_hidden %}
<td valign="bottom">{{field}}</td>
{%else%}
{{field}}
{% endif %}
{%endfor%}
</tr>
{%endfor%}
</table>
|
More like this
- Printing inline formsets as UL / P by ikke 3 years, 9 months ago
- Making a django inline (model) formset really tabular by fnl 4 years, 2 months ago
- Embedded inline formsets in ModelForm by stan 2 years, 7 months ago
- Unique field inline formset by dcwatson 9 months, 1 week ago
- Handles Inline Formsets and also "in-standard-way" normal forms by sebnapi 1 year, 3 months ago
Comments