Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
katdom13 authored and nickmoreton committed Aug 9, 2024
1 parent 3f67ea1 commit 44a6e0c
Showing 1 changed file with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
{% extends "wagtailadmin/generic/confirm_delete.html" %}
{% load i18n %}

{% block content %}
{% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=view.get_page_subtitle icon=view.header_icon %}

<div class="nice-padding">
{% if can_delete %}
<p>{{ view.confirmation_message }}</p>

<form action="{{ view.get_delete_url }}" method="POST">
{% csrf_token %}
<input type="submit" value="{% trans 'Yes, delete' %}" class="button serious" />
<a href="{% url 'wagtaillocales:edit' locale.id %}" class="button button-secondary">{% trans "Back" %}</a>
</form>
{% else %}
<p>{{ view.cannot_delete_message }}</p>
{% block main_content %}
{% if can_delete %}
<p>{{ view.confirmation_message }}</p>

<form action="{{ view.get_delete_url }}" method="POST">
{% csrf_token %}
<input type="submit" value="{% trans 'Yes, delete' %}" class="button serious" />
<a href="{% url 'wagtaillocales:edit' locale.id %}" class="button button-secondary">{% trans "Back" %}</a>
{% endif %}
</div>
</form>
{% else %}
<p>{{ view.cannot_delete_message }}</p>

<a href="{% url 'wagtaillocales:edit' locale.id %}" class="button button-secondary">{% trans "Back" %}</a>
{% endif %}
{% endblock %}

0 comments on commit 44a6e0c

Please sign in to comment.