diff --git a/wagtail/wagtailusers/templates/wagtailusers/groups/create.html b/wagtail/wagtailusers/templates/wagtailusers/groups/create.html index 5ea5fd4bd..b675694dc 100644 --- a/wagtail/wagtailusers/templates/wagtailusers/groups/create.html +++ b/wagtail/wagtailusers/templates/wagtailusers/groups/create.html @@ -8,23 +8,29 @@ {% trans "Add group" as add_group_str %} {% include "wagtailadmin/shared/header.html" with title=add_group_str icon="group" %} - -
- {% csrf_token %} -
+ +
+ + {% csrf_token %} +
    {% include "wagtailadmin/shared/field_as_li.html" with field=form.name %} - {% format_permissions permission_bound_field=form.permissions %} - {% include "wagtailusers/groups/includes/page_permissions_formset.html" with formset=formset only %} +
  • + {% format_permissions permission_bound_field=form.permissions %} +
  • +
  • + {% include "wagtailusers/groups/includes/page_permissions_formset.html" with formset=formset only %} +
-
- + +
{% endblock %} + {% block extra_js %} {% include "wagtailadmin/pages/_editor_js.html" %} - {% endblock %} diff --git a/wagtail/wagtailusers/templates/wagtailusers/groups/edit.html b/wagtail/wagtailusers/templates/wagtailusers/groups/edit.html index 7ef34d89d..68403bd55 100644 --- a/wagtail/wagtailusers/templates/wagtailusers/groups/edit.html +++ b/wagtail/wagtailusers/templates/wagtailusers/groups/edit.html @@ -8,27 +8,37 @@ {% trans "Editing" as editing_str %} {% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=group.name icon="group" %} - -
- {% csrf_token %} -
+ +
+ + {% csrf_token %} +
    {% include "wagtailadmin/shared/field_as_li.html" with field=form.name %} - {% format_permissions permission_bound_field=form.permissions %} - {% include "wagtailusers/groups/includes/page_permissions_formset.html" with formset=formset only %} -
  • - {% if perms.auth.delete_group %} - {% trans "Delete group" %} - {% endif %} + +
  • + {% format_permissions permission_bound_field=form.permissions %} +
  • +
  • + {% include "wagtailusers/groups/includes/page_permissions_formset.html" with formset=formset only %} +
  • +
  • + + + {% if perms.auth.delete_group %} + {% trans "Delete group" %} + {% endif %}
-
- + + +
{% endblock %} + {% block extra_js %} {% include "wagtailadmin/pages/_editor_js.html" %} - {% endblock %} diff --git a/wagtail/wagtailusers/templates/wagtailusers/groups/includes/formatted_permissions.html b/wagtail/wagtailusers/templates/wagtailusers/groups/includes/formatted_permissions.html index 8122b0767..b3f46e1ec 100644 --- a/wagtail/wagtailusers/templates/wagtailusers/groups/includes/formatted_permissions.html +++ b/wagtail/wagtailusers/templates/wagtailusers/groups/includes/formatted_permissions.html @@ -1,42 +1,63 @@ -

Object permissions

+{% load i18n %} + +

{% trans "Object permissions" %}

- - - - - - - {% for content_perms_dict in object_perms %} - - - - - - - {% endfor %} -
ObjectAddChangeDelete
{{ content_perms_dict.object|capfirst }} - {% with content_perms_dict.add as perm_tuple %} - - {% endwith %} - - {% with content_perms_dict.change as perm_tuple %} - - {% endwith %} - - {% with content_perms_dict.delete as perm_tuple %} - - {% endwith %} -
-

Other permissions

- - {% for perm_tuple in other_perms %} - - - + + + + + + + + + + + + + {% for content_perms_dict in object_perms %} + + + - - {% endfor %} + {% endwith %} + + + + + {% endfor %} + +
{{ perm_tuple.0.name }} -
{% trans "Name" %}{% trans "Add" %}{% trans "Change" %}{% trans "Delete" %}

{{ content_perms_dict.object|capfirst }}

+ {% with content_perms_dict.add as perm_tuple %} - -
+ {% with content_perms_dict.change as perm_tuple %} + + {% endwith %} + + {% with content_perms_dict.delete as perm_tuple %} + + {% endwith %} +
+ +

{% trans "Other permissions" %}

+ + + + + + + + + + + {% for perm_tuple in other_perms %} + + + + + {% endfor %} +
{% trans "Name" %}
{{ perm_tuple.0.name }} + +
diff --git a/wagtail/wagtailusers/templates/wagtailusers/groups/includes/page_permissions_formset.html b/wagtail/wagtailusers/templates/wagtailusers/groups/includes/page_permissions_formset.html index 03cb2a19e..ccfffaf42 100644 --- a/wagtail/wagtailusers/templates/wagtailusers/groups/includes/page_permissions_formset.html +++ b/wagtail/wagtailusers/templates/wagtailusers/groups/includes/page_permissions_formset.html @@ -1,5 +1,8 @@ {% load i18n %} -{{ formset.management_form }} +

Page permissions

+ +{{ formset.management_form }}{# what is this? #} +