{% extends "base.html" %}

{% load i18n %}

{% block actions %}
    <a class="btn btn-default" href="{{ step.get_edit_url }}">{% trans 'Back to the step' %}</a>
{% endblock %}

{% block main %}
	<form action="{% if criterion.pk %}{{ criterion.get_step_edit_url }}{% else %}{{ criterion.get_step_create_url }}{% endif %}" method="post">{% csrf_token %}
		<div class="panel panel-default">
			<table class="table table-bordered">
				{% include 'extras/form.html' %}
			</table>
			<div class="panel-footer clearfix">
				<input type="submit" value="{% trans 'Submit' %}" class="btn btn-primary pull-right">
			</div>
		</div>
	</form>
{% endblock %}
