diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-07-30 16:41:00 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-07-30 17:42:14 +0100 |
commit | 26429aa50b9a915de3a9b3042420e1525f55b164 (patch) | |
tree | ed5abf229b973677e1fc159210e7b4c7b54d9da2 | |
parent | 64ec1aeb3c5da3235df4fba1b765d2f831c11b49 (diff) |
List a report’s bodies more nicely in admin.
-rw-r--r-- | templates/web/base/admin/report_edit.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/web/base/admin/report_edit.html b/templates/web/base/admin/report_edit.html index a63952ec6..d488dcadc 100644 --- a/templates/web/base/admin/report_edit.html +++ b/templates/web/base/admin/report_edit.html @@ -31,7 +31,16 @@ class="admin-offsite-link">[% problem.latitude %], [% problem.longitude %]</a> %], [% IF problem.used_map %][% loc('used map') %][% ELSE %][% loc("didn't use map") %][% END %])</li> -<li>[% loc('For council(s):') %] [% IF problem.bodies_str %][% problem.bodies_str %][% ELSE %]<em>[% loc('None' ) %]</em>[% END %] ([% loc('other areas:') %] [% problem.areas | remove('^,') | remove( ',$' ) %])</li> +<li>[% loc('Body:') %] + [% IF problem.bodies_str %] + [% FOREACH body IN problem.bodies.values %] + <a href="[% c.uri_for('body', body.id) %]">[% body.name | html %]</a> + [%- ',' IF NOT loop.last %] + [% END %] + [% ELSE %] + <em>[% loc('None' ) %]</em> + [% END %] + ([% loc('other areas:') %] [% problem.areas | remove('^,') | remove( ',$' ) %])</li> [% IF problem.extra.address %] <li>[% loc('Property address:') %] [% problem.extra.address | html %]</li> [% END %] |