diff options
Diffstat (limited to 'ishtar/templates/default_wizard.html')
| -rw-r--r-- | ishtar/templates/default_wizard.html | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/ishtar/templates/default_wizard.html b/ishtar/templates/default_wizard.html index 752728ab3..2b8ade350 100644 --- a/ishtar/templates/default_wizard.html +++ b/ishtar/templates/default_wizard.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load i18n %} {% load range %} +{% load table_form %} {% block extra_head %} {{form.media}} {% endblock %} @@ -19,29 +20,13 @@ {%if form.non_form_errors%}<tr class='error'><th colspan='2'>{{form.non_form_errors}}</th></tr>{%endif%} {{ form.management_form }} {% for formsetform in form.forms %} - {% for field in formsetform %} - <tr{% if field.field.required %} class='required'{% endif %}> - <th>{{ field.label_tag }}</th> - <td> {{ field.errors }}{{field|safe}}</td>{% if field.help_text %} - <td><a href="#{{field.name}}" class="help_display" title="{% trans "Help"%}">?</a></td> - </tr> - <tr class="help_text" id="{{field.name}}_help"> - <td colspan="3"><div>{{field.help_text}}</div></td> - {%endif%}</tr>{% endfor %} + {% table_form formsetform %} {% endfor %} <tr class='modify'><td colspan="2"><button name="formset_modify" value="{{form_step}}">{% trans "Add/Modify" %}</button></td></tr></li> </table> {% else %} <table> - {% for field in form %} - <tr{% if field.field.required %} class='required'{% endif %}> - <th>{{ field.label_tag }}</th> - <td> {{ field.errors }}{{field|safe}}</td>{% if field.help_text %} - <td><a href="#{{field.name}}" class="help_display" title="{% trans "Help"%}">?</a></td> - </tr> - <tr class="help_text" id="{{field.name}}_help"> - <td colspan="3"><div>{{field.help_text}}</div></td> - {%endif%}</tr>{% endfor %} +{% table_form form %} </table> {% endif %} <input type="hidden" name="{{ step_field }}" value="{{ step0 }}" /> |
