-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make generic/confirm_unpublish.html template extend generic/base.html…
… template
- Loading branch information
Showing
2 changed files
with
27 additions
and
28 deletions.
There are no files selected for viewing
46 changes: 21 additions & 25 deletions
46
wagtail/admin/templates/wagtailadmin/generic/confirm_unpublish.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
{% extends "wagtailadmin/base.html" %} | ||
{% extends "wagtailadmin/generic/base.html" %} | ||
{% load i18n wagtailadmin_tags %} | ||
{% block titletag %}{% blocktrans trimmed with title=object_display_title %}Unpublish {{ title }}{% endblocktrans %}{% endblock %} | ||
{% block content %} | ||
{% include "wagtailadmin/shared/header.html" with title=_("Unpublish") subtitle=object_display_title icon=header_icon %} | ||
|
||
<div class="nice-padding"> | ||
{% if usage_url %} | ||
{% include "wagtailadmin/shared/usage_summary.html" %} | ||
{% endif %} | ||
{% block confirmation_text %} | ||
<p> | ||
{% blocktrans trimmed with model_name=model_opts.verbose_name %} | ||
Are you sure you want to unpublish this {{ model_name }}? | ||
{% endblocktrans %} | ||
</p> | ||
{% endblock %} | ||
{% block main_content %} | ||
{% if usage_url %} | ||
{% include "wagtailadmin/shared/usage_summary.html" %} | ||
{% endif %} | ||
{% block confirmation_text %} | ||
<p> | ||
{% blocktrans trimmed with model_name=model_opts.verbose_name %} | ||
Are you sure you want to unpublish this {{ model_name }}? | ||
{% endblocktrans %} | ||
</p> | ||
{% endblock %} | ||
|
||
<form action="{{ unpublish_url }}" method="POST"> | ||
{% csrf_token %} | ||
<form action="{{ unpublish_url }}" method="POST"> | ||
{% csrf_token %} | ||
|
||
{% block form_content %} | ||
{% endblock %} | ||
{% block form_content %} | ||
{% endblock %} | ||
|
||
<div> | ||
<button class="button" type="submit">{% trans 'Yes, unpublish it' %}</button> | ||
<a href="{{ next_url }}" class="button button-secondary">{% trans "No, don't unpublish" %}</a> | ||
</div> | ||
</form> | ||
</div> | ||
<div> | ||
<button class="button" type="submit">{% trans 'Yes, unpublish it' %}</button> | ||
<a href="{{ next_url }}" class="button button-secondary">{% trans "No, don't unpublish" %}</a> | ||
</div> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters