From 4eaf4bd78531835822f6740c758c1660e1f81043 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 24 Jan 2012 12:13:19 -0400 Subject: [PATCH] Add cancel button and previous hidden variable support to the generic form template --- apps/common/templates/generic_form_subtemplate.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/common/templates/generic_form_subtemplate.html b/apps/common/templates/generic_form_subtemplate.html index e502d78fd6..37eeee5db4 100644 --- a/apps/common/templates/generic_form_subtemplate.html +++ b/apps/common/templates/generic_form_subtemplate.html @@ -35,6 +35,10 @@ {% endif %} + {% if previous %} + + {% endif %} + {% for hidden_field in hidden_fields %} {{ hidden_field.as_hidden }} {% endfor %} @@ -77,6 +81,13 @@ {% endif %} {% if submit_label %}{{ submit_label }}{% else %}{% if object %}{% trans "Save" %}{% else %}{% trans "Submit" %}{% endif %}{% endif %} + + {% if previous %} + + {% if cancel_label %}{{ cancel_label }}{% else %}{% trans 'Cancel' %}{% endif %} {% if cancel_label %}{{ cancel_label }}{% else %}{% trans "Cancel" %}{% endif %} + + {% endif %} + {% comment %} {% trans 'Cancel' %} {% trans 'Cancel' %}