diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2010-12-29 10:58:46 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2010-12-29 10:58:46 +0100 |
| commit | f1eca7a1eef6a2ff8bb87c4626001c231eb4c8fd (patch) | |
| tree | 7856604c8fa5601a1b29adc0f1161501c33e0c7e /ishtar/templates | |
| parent | 537b4b443b5e9232a90b506c804c52ea0ed396ba (diff) | |
| download | Ishtar-f1eca7a1eef6a2ff8bb87c4626001c231eb4c8fd.tar.bz2 Ishtar-f1eca7a1eef6a2ff8bb87c4626001c231eb4c8fd.zip | |
Integration of session wizard (refs #51)
Diffstat (limited to 'ishtar/templates')
| -rw-r--r-- | ishtar/templates/base.html | 2 | ||||
| -rw-r--r-- | ishtar/templates/file_wizard.html | 13 |
2 files changed, 6 insertions, 9 deletions
diff --git a/ishtar/templates/base.html b/ishtar/templates/base.html index b25d683e4..97d3fda7e 100644 --- a/ishtar/templates/base.html +++ b/ishtar/templates/base.html @@ -36,7 +36,7 @@ {% if section.available %}<li>{{section.label}} <ul> {% for menu_item in section.childs %}{%if menu_item.available%} - <li{%ifequal menu_item.idx current_action%} class='selected'{%endifequal%}><a href='{% url action menu_item.idx%}'>{{menu_item.label}}</a></li> + <li{%ifequal menu_item.idx CURRENT_ACTION%} class='selected'{%endifequal%}><a href='{% url action menu_item.idx 1%}'>{{menu_item.label}}</a></li> {%endif%}{% endfor %} </ul> </li>{%endif%} diff --git a/ishtar/templates/file_wizard.html b/ishtar/templates/file_wizard.html index d9e6a2d8d..4ac4644e6 100644 --- a/ishtar/templates/file_wizard.html +++ b/ishtar/templates/file_wizard.html @@ -2,15 +2,12 @@ {% load i18n %} {% load range %} {% block content %} -{% if step > 1 %} -{% for step_num in step|get_range %} -<form action="." method="post">{% csrf_token %} -<input type="submit" value="Step {{step_num}}"> -{{ previous_fields|safe }} -<input type="hidden" name="{{ next_step_field }}" value="1" /> -</form> +<ul id='form_path'> +{% for step in extra_context.previous_steps %} + <li>» <a href='{%url action CURRENT_ACTION step.slug%}'>Step {{step.slug}}</a></li> {% endfor %} -{% endif %} + <li class='current'>» <a href='{%url action CURRENT_ACTION current_step.slug%}'>Step {{current_step.slug}}</a></li> +</ul> <form action="." method="post">{% csrf_token %} <table> {{ form }} |
