mirror of
https://github.com/ae-utbm/sith.git
synced 2025-05-17 15:04:04 +00:00
34 lines
872 B
Django/Jinja
34 lines
872 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}Delete confirmation{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block info_boxes %}
|
|
{% endblock %}
|
|
|
|
{% block nav %}
|
|
{% endblock %}
|
|
|
|
{# if the template context has the `object_name` variable,
|
|
then this one will be used,
|
|
instead of the result of `str(object)` #}
|
|
{% if object and not object_name %}
|
|
{% set object_name=object %}
|
|
{% endif %}
|
|
|
|
{% block content %}
|
|
<h2>{% trans %}Delete confirmation{% endtrans %}</h2>
|
|
<form action="" method="post">{% csrf_token %}
|
|
<p>{% trans name=object_name %}Are you sure you want to delete "{{ name }}"?{% endtrans %}</p>
|
|
<input type="submit" value="{% trans %}Confirm{% endtrans %}" />
|
|
</form>
|
|
<form method="GET" action="javascript:history.back();">
|
|
<input type="submit" name="cancel" value="{% trans %}Cancel{% endtrans %}" />
|
|
</form>
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|