Login

InlineFormset Template

Author:
petry
Posted:
November 12, 2008
Language:
HTML/template
Version:
Not specified
Score:
0 (after 0 ratings)

Field used to cutomize inline formset

 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

  1. Bootstrap Accordian by Netplay4 5 years, 2 months ago
  2. Bootstrap theme for django-endless-pagination? by se210 8 years, 2 months ago
  3. Bootstrap theme for django-endless-pagination? by se210 8 years, 2 months ago
  4. Reusable form template with generic view by roldandvg 8 years, 3 months ago
  5. Pagination Django with Boostrap by guilegarcia 8 years, 5 months ago

Comments

Please login first before commenting.