summaryrefslogtreecommitdiff
path: root/ishtar/templates/file_wizard.html
blob: 9ebf4adb38ec5b02b1fc240125168a15875f766b (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
{% extends "base.html" %}
{% load i18n %}
{% load range %}
{% block content %}
<form action="." method="post">{% csrf_token %}
<ul id='form_path'>
{% for step in previous_steps %}
  <li>&raquo; <button name="form_prev_step" value="{{forloop.counter0}}">{{step.form_label}}</button></li>
{% endfor %}
  <li class='current'>&raquo; <a href='#'>{{current_step.form_label}}</a></li>
</ul>
<div class='form'>
<table>
{% if form.forms %}
  {{ form.management_form }}
  {% for formsetform in form.forms %}
    {{ formsetform.as_table }}
  {% endfor %}
{% else %}
  {{ form.as_table }}
{% endif %}
</table>
<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
{{ previous_fields|safe }}
<input type="submit" value="{% trans "Validate" %}"/>
</div>
</form>
{% endblock %}