Fix generic wizard template

This commit is contained in:
Roberto Rosario
2014-06-30 01:17:07 -04:00
parent 1e6d77f163
commit 9123e2af54
2 changed files with 16 additions and 4 deletions

View File

@@ -23,6 +23,9 @@
{% else %}
<form name="{{ form.prefix }}" method="{{ submit_method|default:'post' }}" action="{{ form_action }}" class="form">
{% endif %}
{{ wizard.management_form }}
{% if step_field %}
<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
{% endif %}

View File

@@ -1,20 +1,29 @@
{% extends 'base.html' %}
{% load i18n %}
{% load styling %}
{% add_classes_to_form form %}
{% block content %}
{{ wizard.management_form }}
{% with step_title as title %}
{% with previous_fields as hidden_fields %}
{% if form.management_form %}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% with wizard.form as form %}
{% with 'true' as form_display_mode_table %}
{% include 'generic_form_subtemplate.html' %}
{% endwith %}
{% endwith %}
{% else %}
{% include 'generic_form_subtemplate.html' %}
{% with wizard.form as form %}
{% include 'generic_form_subtemplate.html' %}
{% endwith %}
{% endif %}
{% endwith %}
{% endwith %}
{% endblock %}