wizard_form.html 802 B

12345678910111213141516171819202122232425262728
  1. {% extends "base.html" %}
  2. {% load i18n %}
  3. {% block head %}
  4. {{ wizard.form.media }}
  5. {% endblock %}
  6. {% block content %}
  7. <p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
  8. <form action="" method="post">{% csrf_token %}
  9. <table>
  10. {{ wizard.management_form }}
  11. {% if wizard.form.forms %}
  12. {{ wizard.form.management_form }}
  13. {% for form in wizard.form.forms %}
  14. {{ form }}
  15. {% endfor %}
  16. {% else %}
  17. {{ wizard.form }}
  18. {% endif %}
  19. </table>
  20. {% if wizard.steps.prev %}
  21. <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.first }}">{% trans "first step" %}</button>
  22. <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">{% trans "prev step" %}</button>
  23. {% endif %}
  24. <input type="submit" value="{% trans "submit" %}"/>
  25. </form>
  26. {% endblock %}