-{% block trimmed %} - You are authenticated as {{ username }}, but are not authorized to - access this page. Would you like to login to a different account? -{% endblock %} -
-{% endif %} - - - -diff --git a/openwisp_users/templates/admin/action_confirmation.html b/openwisp_users/templates/admin/action_confirmation.html index 507c9defc..e7aed5b0d 100644 --- a/openwisp_users/templates/admin/action_confirmation.html +++ b/openwisp_users/templates/admin/action_confirmation.html @@ -1,45 +1 @@ -{% extends 'admin/base_site.html' %} -{% load i18n l10n admin_urls static %} - -{% block extrahead %} - {{ block.super }} - {{ media }} - -{% endblock %} - -{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation - delete-selected-confirmation{% endblock %} - -{% block breadcrumbs %} -
-{% endblock %} - -{% block content %} - {% if action == 'make_inactive' %} -{% blocktrans %}Are you sure you want to make the selected users inactive?{% endblocktrans %}
- {% else %} -{% blocktrans %}Are you sure you want to make the selected users active?{% endblocktrans %}
- {% endif %} --{% if form.errors.items|length == 1 %}Please correct the error below{% else %}Please correct the errors below{% endif %} -
-{% endif %} - -{% if form.non_field_errors %} -{% for error in form.non_field_errors %} -- {{ error }} -
-{% endfor %} -{% endif %} - --{% block trimmed %} - You are authenticated as {{ username }}, but are not authorized to - access this page. Would you like to login to a different account? -{% endblock %} -
-{% endif %} - - - -{% blocktrans %}Are you sure you want to make the selected users inactive?{% endblocktrans %}
+ {% else %} +{% blocktrans %}Are you sure you want to make the selected users active?{% endblocktrans %}
+ {% endif %} ++{% if form.errors.items|length == 1 %}Please correct the error below{% else %}Please correct the errors below{% endif %} +
+{% endif %} + +{% if form.non_field_errors %} +{% for error in form.non_field_errors %} ++ {{ error }} +
+{% endfor %} +{% endif %} + ++{% block trimmed %} + You are authenticated as {{ username }}, but are not authorized to + access this page. Would you like to login to a different account? +{% endblock %} +
+{% endif %} + + + +