From 1a1422783f9ffd10970e4b4439bee32f3ceb8fc7 Mon Sep 17 00:00:00 2001 From: Zarino Zappia Date: Wed, 1 May 2019 16:52:04 +0100 Subject: Fieldsets/legends for admin checkbox lists --- templates/web/base/admin/category-checkboxes.html | 13 +++-- .../web/base/admin/responsepriorities/edit.html | 7 +-- templates/web/base/admin/template_edit.html | 7 +-- templates/web/base/admin/users/form.html | 60 +++++++++++----------- .../web/bromley/admin/category-checkboxes.html | 13 +++-- web/cobrands/sass/_base.scss | 3 +- 6 files changed, 53 insertions(+), 50 deletions(-) diff --git a/templates/web/base/admin/category-checkboxes.html b/templates/web/base/admin/category-checkboxes.html index fb5e39695..eacd1a398 100644 --- a/templates/web/base/admin/category-checkboxes.html +++ b/templates/web/base/admin/category-checkboxes.html @@ -1,6 +1,12 @@ -

- [% loc('Categories:') %] -

+
+ + [% IF hint %] +
+

[% hint %]

+
+ [% END %] + [% loc('Categories:') %] +
+
diff --git a/templates/web/base/admin/responsepriorities/edit.html b/templates/web/base/admin/responsepriorities/edit.html index 608f19e74..02661fd14 100644 --- a/templates/web/base/admin/responsepriorities/edit.html +++ b/templates/web/base/admin/responsepriorities/edit.html @@ -40,12 +40,7 @@

-
-

- [% loc('If you only want this priority to be an option for specific categories, pick them here. By default they will show for all categories.') %] -

-
- [% INCLUDE 'admin/category-checkboxes.html' %] + [% INCLUDE 'admin/category-checkboxes.html' hint=loc('If you only want this priority to be an option for specific categories, pick them here. By default they will show for all categories.') %]

-
-

- [% loc('If you only want this template to be an option for specific categories, pick them here. By default they will show for all categories.') %] -

-
- [% INCLUDE 'admin/category-checkboxes.html' %] + [% INCLUDE 'admin/category-checkboxes.html' hint=loc('If you only want this template to be an option for specific categories, pick them here. By default they will show for all categories.') %] [% IF errors.state %]
[% errors.state %]
diff --git a/templates/web/base/admin/users/form.html b/templates/web/base/admin/users/form.html index bc64a79c7..6facd5c8a 100644 --- a/templates/web/base/admin/users/form.html +++ b/templates/web/base/admin/users/form.html @@ -93,14 +93,7 @@ [% IF contacts AND c.cobrand.moniker != 'zurich'%]
  • -
    -

    - [% loc( - "Authorised staff users can be associated with the categories in which they operate.") - %] -

    -
    - [% INCLUDE 'admin/category-checkboxes.html' %] + [% INCLUDE 'admin/category-checkboxes.html' hint=loc("Authorised staff users can be associated with the categories in which they operate.") %]
  • [% END %] @@ -162,33 +155,38 @@ [% IF available_permissions AND NOT user.is_superuser %]
  • -
    -

    - [% loc("Users can perform the following actions within their assigned body or area.") %] -

    -
    -

    [% loc('Permissions:') %]

    -