From 9123e2af54f7dec1032ef0db817ee3c05c156b6f Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 30 Jun 2014 01:17:07 -0400 Subject: [PATCH] Fix generic wizard template --- .../templates/generic_form_subtemplate.html | 3 +++ mayan/apps/common/templates/generic_wizard.html | 17 +++++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/mayan/apps/common/templates/generic_form_subtemplate.html b/mayan/apps/common/templates/generic_form_subtemplate.html index 86a90773e0..59d5474afd 100644 --- a/mayan/apps/common/templates/generic_form_subtemplate.html +++ b/mayan/apps/common/templates/generic_form_subtemplate.html @@ -23,6 +23,9 @@ {% else %}
{% endif %} + + {{ wizard.management_form }} + {% if step_field %} {% endif %} diff --git a/mayan/apps/common/templates/generic_wizard.html b/mayan/apps/common/templates/generic_wizard.html index dd11f251f7..916b93b491 100644 --- a/mayan/apps/common/templates/generic_wizard.html +++ b/mayan/apps/common/templates/generic_wizard.html @@ -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 %}