diff options
author | Dave Arter <davea@mysociety.org> | 2018-03-27 17:36:18 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-03-29 16:04:32 +0100 |
commit | a955ecf924eadb1e295070a069f67f504065dbf2 (patch) | |
tree | d04a9b7c10413a12044b5475abe0a27204852460 | |
parent | a7e106227c57b0e71ac36720125000ed8397af38 (diff) |
Make it easier to identify Open311 categories in category checkbox list
Displays the category’s email address (service code, for Open311) as
a tooltip. This makes it easier to identify the right category when
editing response templates, for example.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 1 | ||||
-rw-r--r-- | templates/web/base/admin/category-checkboxes.html | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 448980129..565b8cc94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ - Default start date is shown on the dashboard. - Users with 'user_edit' permission can search for users/reports. #2027 - Don't send sent-report emails to as-body/as-anonymous reports. + - Show Open311 service code as tooltip on admin category checkboxes. #2049 - Development improvements: - Add HTML email previewer. - Add CORS header to Open311 output. #2022 diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index e5514c33b..5fe513a28 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -1109,6 +1109,7 @@ sub template_edit : Path('templates') : Args(2) { id => $_->id, category => $_->category_display, active => $active_contacts{$_->id}, + email => $_->email, } } @live_contacts; $c->stash->{contacts} = \@all_contacts; diff --git a/templates/web/base/admin/category-checkboxes.html b/templates/web/base/admin/category-checkboxes.html index 63acd4112..f2167e955 100644 --- a/templates/web/base/admin/category-checkboxes.html +++ b/templates/web/base/admin/category-checkboxes.html @@ -9,7 +9,7 @@ </li> [% FOR contact IN contacts %] <li> - <label> + <label title="[% contact.email | html %]"> <input type="checkbox" name="contacts[[% contact.id %]]" [% 'checked' IF contact.active %]/> [% contact.category %] </label> |