28 lines
1004 B
HTML
28 lines
1004 B
HTML
{% extends "combo/manager_base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block appbar %}
|
|
<h2>{{ view.model.get_verbose_name }}</h2>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<p>
|
|
{% if display_choice %}
|
|
{% blocktrans %}This page has subpages, what do you want to do with them?{% endblocktrans %}
|
|
<ul class="choices">
|
|
<li><label><input type="radio" name="choice" checked="checked" value="delete-one">{% trans 'Delete only this page' %}</label></li>
|
|
<li><label><input type="radio" name="choice" value="delete-all">{% trans 'Delete this page and all subpages' %}</label></li>
|
|
</ul>
|
|
{% else %}
|
|
{% blocktrans %}Are you sure you want to delete this page?{% endblocktrans %}
|
|
{% endif %}
|
|
</p>
|
|
<div class="buttons">
|
|
<button class="delete-button">{% trans 'Delete' %}</button>
|
|
<a class="cancel" href="{{ object.get_absolute_url }}">{% trans 'Cancel' %}</a>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|