[% INCLUDE 'admin/header.html' title=loc('Bodies') -%] [% IF body_errors.size %]
[% loc('Please correct the errors below') %]
[% END %] [% IF bodies.size == 0 %]
[% loc('Currently no bodies have been created.') %]
[% loc('You need to add bodies (such as councils or departments) so that you can then add
the categories of problems they can handle (such as potholes or streetlights) and the
contacts (such as an email address) to which reports are sent.') %]
[% tprintf(loc("As this is a staging site and %s is false, reports made on this site will be sent to the problem reporter, not the contact given for the report’s category."), "SEND_REPORTS_ON_STAGING
") %]
[% loc('Name') %] | [% IF c.cobrand.moniker == 'zurich' %][% loc('Email') %] | [% ELSE %][% loc('Summary') %] | [% END %][% loc('Deleted') %] |
---|---|---|---|
[% IF c.cobrand.moniker == 'zurich' %] [% FILTER repeat(4*body.api_key) %] [% END %] [% IF admin_type == 'super' %] [% body.name | html %] [% ELSE %] [% body.name | html %] [% END %] [% ELSE %] [%# not Zurich: all bodies should be links %] [% body.name | html%] [%- IF body.parent %], [% body.parent.name | html %][% END -%] [% END %] | [% IF c.cobrand.moniker == 'zurich' %][% body.endpoint %] | [% ELSE %][% IF counts.$id %] [% tprintf( nget('%d address', '%d addresses', counts.$id.c), counts.$id.c) %] [% IF counts.$id.deleted == counts.$id.c %] (all deleted; reports will not be sent) [% ELSIF counts.$id.deleted %] ([% counts.$id.deleted %] deleted) [% END %] [% IF counts.$id.confirmed != counts.$id.c %] ([% counts.$id.c-counts.$id.confirmed %] unconfirmed) [% END %] [% ELSE %] No categories, reports will not be sent [% END %] | [% END %][% IF body.deleted %][% loc('Yes') %][% END %] |