diff options
Diffstat (limited to 'ishtar/templates')
| -rw-r--r-- | ishtar/templates/confirm_wizard.html | 27 | ||||
| -rw-r--r-- | ishtar/templates/default_wizard.html | 4 | ||||
| -rw-r--r-- | ishtar/templates/wizard_done.html | 6 |
3 files changed, 17 insertions, 20 deletions
diff --git a/ishtar/templates/confirm_wizard.html b/ishtar/templates/confirm_wizard.html index c83134dfb..78b39fb35 100644 --- a/ishtar/templates/confirm_wizard.html +++ b/ishtar/templates/confirm_wizard.html @@ -5,21 +5,24 @@ <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.form_label}}</button></li> + <li>» <button name="form_prev_step" value="{{forloop.counter0}}">{{step.form_label}}</button></li> {% endfor %} - <li class='current'>» <a href='#'>{{current_step.form_label}}</a></li> + <li class='current'>» <a href='#'>{{current_step.form_label}}</a></li> </ul> <div class='form'> -<p>{% trans "You have entered the following informations:" %}</p> -<table> -{% for label, data in datas %} -<tr><th>{{label}}</th><td>{{data}}</td></th> -{% endfor %} -</table> -<p>{% trans "Would you like to save them?" %}</p> -<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" /> -{{ previous_fields|safe }} -<input type="submit" value="{% trans "Validate" %}"/> + <p>{% trans "You have entered the following informations:" %}</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></th> + {% endfor %} + </table> + {% endfor %} + <p>{% trans "Would you like to save them?" %}</p> + <input type="hidden" name="{{ step_field }}" value="{{ step0 }}" /> + {{ previous_fields|safe }} + <input type="submit" value="{% trans "Validate" %}"/> </div> </form> {% endblock %} diff --git a/ishtar/templates/default_wizard.html b/ishtar/templates/default_wizard.html index 83f02539b..8607f3e19 100644 --- a/ishtar/templates/default_wizard.html +++ b/ishtar/templates/default_wizard.html @@ -5,9 +5,9 @@ <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.form_label}}</button></li> + <li>» <button name="form_prev_step" value="{{forloop.counter0}}">{{step.form_label}}</button></li> {% endfor %} - <li class='current'>» <a href='#'>{{current_step.form_label}}</a></li> + <li class='current'>» <a href='#'>{{current_step.form_label}}</a></li> </ul> <div class='form'> {% if form.forms %} diff --git a/ishtar/templates/wizard_done.html b/ishtar/templates/wizard_done.html index 468e8ed6a..a7068bbab 100644 --- a/ishtar/templates/wizard_done.html +++ b/ishtar/templates/wizard_done.html @@ -1,12 +1,6 @@ {% extends "base.html" %} {% load i18n %} {% block content %} -<ul id='form_path'> -{% for step in previous_steps %} - <li>» <a href='?form_prev_step={{forloop.counter0}}'>{{step.form_label}}</a></li> -{% endfor %} - <li class='current'>» <a href='#'>{{current_step.form_label}}</a></li> -</ul> <p>{%trans "Item successfully saved"%}</p> </div> {% endblock %} |
