summaryrefslogtreecommitdiff
path: root/ishtar/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar/templates')
-rw-r--r--ishtar/templates/base.html2
-rw-r--r--ishtar/templates/file_wizard.html13
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>&raquo; <a href='{%url action CURRENT_ACTION step.slug%}'>Step {{step.slug}}</a></li>
{% endfor %}
-{% endif %}
+ <li class='current'>&raquo; <a href='{%url action CURRENT_ACTION current_step.slug%}'>Step {{current_step.slug}}</a></li>
+</ul>
<form action="." method="post">{% csrf_token %}
<table>
{{ form }}