summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/wizard/confirm_wizard.html
blob: 1fbaadcd16a20c574b24de0d504b0b6c698084fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{% extends "base.html" %}
{% load i18n %}
{% load range %}
{% block content %}
<h2>{{wizard_label}}</h2>
<form action="." method="post">{% csrf_token %}
<ul id='form_path'>
{% for step in previous_steps %}
  <li><button name="form_prev_step" value="{{forloop.counter0}}">{{step}}</button></li>
{% endfor %}
  <li class='current'><a href='#'>{{current_step_label}}</a></li>
</ul>
</form>
<form action="." method="post">{% csrf_token %}
<div class='form'>
  {% block "warning_informations" %}{% endblock %}
  <p>{%if confirm_msg %}{{confirm_msg|safe}}{%else%}{% trans "You have entered the following informations:" %}{%endif%}</p>
  {% for form_label, form_data in datas %}
  <table class='confirm'>
    <caption>{{form_label}}</caption>
    {% for label, data, cls in form_data %}
    <tr{%if cls%} class='{{cls}}'{%endif%}><th>{{label}}</th><td>{{data}}</td></tr>
    {% endfor %}
  </table>
  {% endfor %}
{{wizard.management_form}}
  {%if not wizard.form.is_hidden %}
  <table>
    {{ wizard.form.as_table }}
   </table>
  {%endif%}
  <input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
  {{ previous_fields|safe }}
  {% if extra_form %}
  <table>
  {{ extra_form }}
  </table>
  {% endif %}
  {% block "extra_informations" %}{% endblock %}
<div id='validation-bar' class='big'>
  <p>{%if confirm_end_msg %}{{confirm_end_msg|safe}}{%else%}{% trans "Would you like to save them?" %}{%endif%}</p>
  <input type="submit" value="{% trans "Validate" %}"/>
</div>
</div>
</form>
{% endblock %}