{% extends "base.html" %}
{% load crispy_forms_tags %}


{% block content %}
<div class="row">
	<div class="col-sm-12">
		<div class="panel panel-default">
			<div class="panel-heading">Create AS &amp; Net - Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</div>
			<div class="panel-body">
<p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
<p>{{ message }}</p>
<form action="" method="post">{% csrf_token %}
<table>
{{ wizard.management_form }}
{% if wizard.form.forms %}
    {{ wizard.form.management_form }}
    {% for form in wizard.form.forms %}
        {{ form }}
    {% endfor %}

{% else %}
    {{ wizard.form|crispy }}
{% endif %}
</table>
{% if wizard.steps.prev %}
<button class="btn" name="wizard_goto_step" type="submit" value="{{ wizard.steps.first }}">Back</button>
{% endif %}
{% if wizard.steps.next %}
{# <button class="btn" name="wizard_goto_step" type="submit" value="{{ wizard.steps.next }}">Next</button> #}
{# <button class="btn" name="wizard_goto_step" type="submit" value="{{ wizard.steps.next }}">{% if wizard.steps.next %}Next{% else %}Create{% endif %}</button> #}
{% else %}
{# <button class="btn btn-primary" type="submit" value="submit">Create</button> #}
{% endif %}
<button class="btn" type="submit" value="{{ wizard.steps.next }}">{% if wizard.steps.next %}Next{% else %}Create{% endif %}</button>
</form>

			</div>
		</div>
	</div>
</div>

{% include "whoisdb/create_js.html" %}

{% endblock %}