summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/wizard/parcels_wizard.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-04-04 20:49:29 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-04-04 20:49:29 +0200
commitf41b22f173bb9c9c331fa9eab2a7a8d47d0a57db (patch)
tree673bfb7389360f360ddaafcfe1a4d133d67f4c36 /ishtar_common/templates/ishtar/wizard/parcels_wizard.html
parent93de2ae2223f284431000c66ba7d94f6f73eb658 (diff)
downloadIshtar-f41b22f173bb9c9c331fa9eab2a7a8d47d0a57db.tar.bz2
Ishtar-f41b22f173bb9c9c331fa9eab2a7a8d47d0a57db.zip
Inline formset to manage parcels
Diffstat (limited to 'ishtar_common/templates/ishtar/wizard/parcels_wizard.html')
-rw-r--r--ishtar_common/templates/ishtar/wizard/parcels_wizard.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/wizard/parcels_wizard.html b/ishtar_common/templates/ishtar/wizard/parcels_wizard.html
new file mode 100644
index 000000000..94e9820ab
--- /dev/null
+++ b/ishtar_common/templates/ishtar/wizard/parcels_wizard.html
@@ -0,0 +1,28 @@
+{% extends "ishtar/wizard/default_wizard.html" %}
+{% load i18n range inline_formset %}
+{% block extra_head %}
+{{wizard.form.media}}
+{% endblock %}
+{% block wizard_form %}
+<div class='form'>
+{% if reminder %}<div class='reminder'>{{ reminder }}</div>{%endif%}
+{{ wizard.form.media }}
+{{ wizard.management_form }}
+ {{ wizard.form.management_form }}
+<div class='top_button'><input type="submit" id="submit_form" value="{% trans "Validate" %}"/></div>
+ {%if wizard.form.non_form_errors%}
+<table class='formset'>
+<tr class='error'><th colspan='2'>{{wizard.form.non_form_errors}}</th></tr>
+</table>{%endif%}
+<table class='inline-table'>
+ <tr>{% for field in wizard.form.forms.0 %}<th>{{ field.label_tag }}</th>{% endfor %}</tr>
+ {% inline_formset 'Parcels' wizard.form.forms False %}
+</table>
+<p><button name="formset_modify" value="{{wizard.steps.current}}">{% trans "Add/Modify" %}</button></p>
+<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
+{{ previous_fields|safe }}
+<input type="submit" id="submit_form" name='validate' value="{% trans "Validate" %}"/>
+{% if next_steps %}<input type="submit" id="submit_end_form" name='validate_and_end' value="{% trans "Validate and end" %}"/>{% endif %}
+</div>
+</form>
+{% endblock %}