mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-09 17:31:06 +00:00
40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
{% extends "djadmin2theme_default/base.html" %}
|
|
{% load admin2_tags i18n %}
|
|
|
|
{% block title %}{% trans "Are you sure?" %}{% endblock title %}
|
|
|
|
{% block page_title %}{% trans "Are you sure?" %}{% endblock page_title %}
|
|
|
|
{% block breadcrumbs %}
|
|
<li><a href="{% url "admin2:dashboard" %}">{% trans "Home" %}</a> <span class="divider">/</span></li>
|
|
<li><a href="{% url "admin2:app_index" app_label=app_label %}">{{ app_label|title }}</a> <span class="divider">/</span></li>
|
|
<li><a href="{% url view|admin2_urlname:"index" %}">{{ model_name_pluralized|title }}</a> <span class="divider">/</span></li>
|
|
<li class="active">{% trans "Publish" %}</li>
|
|
{% endblock breadcrumbs %}
|
|
|
|
|
|
{% block content %}
|
|
|
|
<p>
|
|
{% blocktrans with objects_name=objects_name count counter=deletable_objects|length %}Are you sure you want to publish the selected {{ objects_name }}?
|
|
The following item will be published:
|
|
{% plural %}Are you sure you want to publish the selected {{ objects_name }}?
|
|
The following items will be published:
|
|
{% endblocktrans %}
|
|
</p>
|
|
|
|
<ul>
|
|
{{ deletable_objects|unordered_list }}
|
|
</ul>
|
|
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="confirmed" value="yes" />
|
|
<input type="hidden" name="action" value="CustomPublishAction" />
|
|
{% for item in queryset %}
|
|
<input type="hidden" name="selected_model_pk" value="{{ item.pk }}" />
|
|
{% endfor %}
|
|
<button class="btn btn-small btn-danger" type="submit">{% trans "Publish" %}</button>
|
|
</form>
|
|
|
|
{% endblock content %}
|