diff --git a/wagtail/wagtailusers/templates/wagtailusers/formatted_permissions.html b/wagtail/wagtailusers/templates/wagtailusers/formatted_permissions.html new file mode 100644 index 000000000..21855f282 --- /dev/null +++ b/wagtail/wagtailusers/templates/wagtailusers/formatted_permissions.html @@ -0,0 +1,37 @@ +
| Object | +Add | +Change | +Delete | +Others | +
|---|---|---|---|---|
| {{ 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 %} + | +
+ {% for perm_tuple in content_perms_dict.others %}
+
+ {% if not forloop.last %} {% endif %} + {% endfor %} + |
+