|
1 | | -{% extends 'admin/base_site.html' %} |
2 | | -{% load i18n l10n admin_urls static %} |
3 | | - |
4 | | -{% block extrahead %} |
5 | | - {{ block.super }} |
6 | | - {{ media }} |
7 | | - <script src='{% static 'admin/js/cancel.js' %}'></script> |
8 | | -{% endblock %} |
9 | | - |
10 | | -{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation |
11 | | - delete-selected-confirmation{% endblock %} |
12 | | - |
13 | | -{% block breadcrumbs %} |
14 | | -<div class='breadcrumbs'> |
15 | | -<a href='{% url 'admin:index' %}'>{% trans 'Home' %}</a> |
16 | | -› <a href='{% url 'admin:app_list' app_label=opts.app_label %}'>{{ opts.app_config.verbose_name }}</a> |
17 | | -› <a href='{% url opts|admin_urlname:'changelist' %}'>{{ opts.verbose_name_plural|capfirst }}</a> |
18 | | -› {% trans 'Modify active status' %} |
19 | | -</div> |
20 | | -{% endblock %} |
21 | | - |
22 | | -{% block content %} |
23 | | - {% if action == 'make_inactive' %} |
24 | | - <p>{% blocktrans %}Are you sure you want to make the selected users inactive?{% endblocktrans %}</p> |
25 | | - {% else %} |
26 | | - <p>{% blocktrans %}Are you sure you want to make the selected users active?{% endblocktrans %}</p> |
27 | | - {% endif %} |
28 | | - <h2>{% trans "Summary" %}</h2> |
29 | | - <ul> |
30 | | - {% for user in queryset.all %} |
31 | | - <li>{% trans "User" %}: {{ user }}</li> |
32 | | - {% endfor %} |
33 | | - </ul> |
34 | | - <form action='' method='post'>{% csrf_token %} |
35 | | - {% for obj in queryset.all %} |
36 | | - <input type='hidden' name='_selected_action' value='{{ obj.pk|unlocalize }}'/> |
37 | | - {% endfor %} |
38 | | - <div class='submit-row'> |
39 | | - <input type='hidden' name='action' value='{{ action }}'/> |
40 | | - <input type='submit' name='confirmation' value='{% trans "Confirm" %}'/> |
41 | | - <a href='#' onclick='window.history.back(); return false;' |
42 | | - class='button cancel-link'>{% trans 'No, take me back' %}</a> |
43 | | - </div> |
44 | | - </form> |
45 | | -{% endblock %} |
| 1 | +{% extends 'admin/openwisp_users/action_confirmation.html' %} |
0 commit comments