diff --git a/wagtail/users/templates/wagtailusers/groups/create.html b/wagtail/users/templates/wagtailusers/groups/create.html index 592e68aeb7..8c20c480a3 100644 --- a/wagtail/users/templates/wagtailusers/groups/create.html +++ b/wagtail/users/templates/wagtailusers/groups/create.html @@ -1,7 +1,5 @@ -{% extends "wagtailadmin/base.html" %} -{% load wagtailusers_tags wagtailimages_tags wagtailadmin_tags i18n %} - -{% block titletag %}{% trans "Add group" %}{% endblock %} +{% extends "wagtailadmin/generic/base.html" %} +{% load wagtailusers_tags i18n %} {% block extra_css %} {{ block.super }} @@ -9,34 +7,28 @@ {{ form_media.css }} {% endblock %} -{% block content %} +{% block main_content %} +
+ {% csrf_token %} - {% trans "Add group" as add_group_str %} - {% include "wagtailadmin/shared/header.html" with title=add_group_str icon="group" only %} - -
- - {% csrf_token %} - -
+ {% block extra_fields %}{% endblock extra_fields %} + {% endblock fields %} +
  • + {% format_permissions permission_bound_field=form.permissions %} +
  • + {% for panel in permission_panels %} +
  • + {{ panel.as_admin_panel }} +
  • + {% endfor %} +
  • + + {% endblock %} {% block extra_js %} diff --git a/wagtail/users/views/groups.py b/wagtail/users/views/groups.py index 8d18d1d80e..0c139f18b3 100644 --- a/wagtail/users/views/groups.py +++ b/wagtail/users/views/groups.py @@ -76,6 +76,9 @@ class CreateView(PermissionPanelFormsMixin, generic.CreateView): page_title = _("Add group") success_message = _("Group '%(object)s' created.") + def get_page_subtitle(self): + return "" + def post(self, request, *args, **kwargs): """ Handle POST requests: instantiate a form instance with the passed