{% extends 'localcosmos_server/modals/large_modal_form.html' %}

{% load i18n localcosmos_tags %}

{% block title %}
	{% trans 'Manage validation step' %}
{% endblock %}

{% block action %}{% if validation_step %}{% url 'datasets:manage_dataset_validation_routine_step' request.app.uid validation_step.id %}{% else %}{% url 'datasets:add_dataset_validation_routine_step' request.app.uid %}{% endif %}{% endblock %}


{% block extra_body %}

	{% if success %}
		<div class="row">
			<div class="col-12">
				<div class="alert alert-success">{% trans 'Successfully saved your validation step.' %}</div>
			</div>
		</div>
	{% endif %}
{% endblock %}

{% block footer %}
	{% include 'localcosmos_server/modals/footers/save.html' %}
{% endblock %}

{% block script %}
	{% if success %}
		<script>
			$("Modal").modal("hide");
			window.location.reload();
		</script>
	{% endif %}
{% endblock %}
