{% extends 'base.html' %}

{% load i18n %}

{% block subtitle %}
    {% trans 'Deletion confirmation' %}
{% endblock %}

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

{% block main %}
    <form action="{{ criterion.get_delete_url }}" method="post" class="well">{% csrf_token %}
        <p>
            {% blocktrans trimmed with criterion_name=criterion.name %}
                Are you sure you want to delete the criterion "{{ criterion_name }}"?
            {% endblocktrans %}
        </p>
        <input class="btn btn-danger" type="submit" value="{% trans 'Confirm' %}" />
        <a class="btn btn-link" href="{{ criterion.exercise.get_edit_url }}">
            {%  trans 'Cancel' %}
        </a>
    </form>
{% endblock %}
