{% extends 'base.html' %}

{% load i18n %}

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

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

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