diff --git a/ckan/public/base/less/forms.less b/ckan/public/base/less/forms.less index 04f72e68cfe..688d98add68 100644 --- a/ckan/public/base/less/forms.less +++ b/ckan/public/base/less/forms.less @@ -40,6 +40,9 @@ input[type=checkbox] { top: 7px; padding: 0; margin: 0; + &.checkbox-onown { + top: 0; + } } select { diff --git a/ckan/templates/admin/authz.html b/ckan/templates/admin/authz.html index 6348e8e0d46..361fcbc760c 100644 --- a/ckan/templates/admin/authz.html +++ b/ckan/templates/admin/authz.html @@ -6,9 +6,15 @@ {% endblock %} {% macro authz_form_table(id, roles, users, user_role_dict) %} - +
+ + + {% for role in roles %} + + {% endfor %} + - + {% for role in roles %} {% endfor %} @@ -22,13 +28,9 @@ {% endfor %} @@ -39,21 +41,27 @@ {% macro authz_add_table(roles) %} -
User {{ _('User') }} {{ role }} {% if user_role_dict[(user,role)] %} - + {% else %} - + {% endif %}
+
+ + + {% for role in roles %} + + {% endfor %} + - + {% for role in roles %} {% endfor %} - {% for role in roles %} {% endfor %} @@ -61,9 +69,15 @@ {% endmacro %} {% macro authz_form_group_table(id, roles, users, user_role_dict) %} -
User{{ _('User') }} {{ role }}
- + + - +
+
+ + + {% for role in roles %} + + {% endfor %} + - + {% for role in roles %} {% endfor %} @@ -77,13 +91,9 @@ {% endfor %} @@ -94,7 +104,13 @@ {% macro authz_add_group_table(roles) %} -
User Group{{ _('User Group') }} {{ role }} {% if user_role_dict[(user,role)] %} - + {% else %} - + {% endif %}
+
+ + + {% for role in roles %} + + {% endfor %} + {% for role in roles %} @@ -102,13 +118,13 @@ {% endfor %} - {% for role in roles %} {% endfor %} @@ -118,20 +134,19 @@ {% block primary %}
-

{{ _('Administration - Authorization') }}

-

Update Existing Roles

+ {% snippet 'admin/snippets/header.html', action=c.action %} + +

{{ _('Update Existing Roles') }}

{{ authz_form_table('theform', c.roles, c.users, c.user_role_dict) }} - +
-

Add Roles for Any User

+

{{ _('Add Roles for Any User') }}

{{ authz_add_table(c.roles) }} - +
diff --git a/ckan/templates/admin/index.html b/ckan/templates/admin/index.html index ce6ed54ce16..578c570bd9e 100644 --- a/ckan/templates/admin/index.html +++ b/ckan/templates/admin/index.html @@ -8,8 +8,7 @@ {% block primary %}
-

{{ _('Current Sysadmins') }}

-

{% set url=h.url_for(controller='admin', action='authz') %}{% trans %}You can change sysadmins on the authorization page.{% endtrans %}

+ {% snippet 'admin/snippets/header.html', action=c.action %}
    {% for user in c.sysadmins %}
  • diff --git a/ckan/templates/admin/snippets/header.html b/ckan/templates/admin/snippets/header.html new file mode 100644 index 00000000000..aaf569ddda7 --- /dev/null +++ b/ckan/templates/admin/snippets/header.html @@ -0,0 +1,10 @@ +

    {{ _('Administration') }}

    + +
User Group
- + + - +