[% INCLUDE 'admin/header.html' title=tprintf(loc('Council contacts for %s'), body.name) -%] [% PROCESS 'admin/report_blocks.html' %] [% IF updated %]

[% updated %]

[% END %] [% IF body_errors.size %]

[% loc('Please correct the errors below') %]

[% END %] [% IF NOT errors %]

[% IF example_pc %] [% tprintf( loc('Example postcode %s'), example_pc ) | html %] | [% END %] [% loc('Area covered') %]: [% SET body_areas = body.areas %] [% FOR area IN areas %] [% SET aid = area.id %] [% IF body_areas.$aid %] [% area.name | html %] [% END %] [% END %]
[% loc('List all reported problems' ) %] | [% loc('Text only version') %]

[% IF body.send_method == 'Open311' %]

Council contacts configured via Open311

[% END %] [% IF c.cobrand.moniker == 'fixmystreet' %]

Do not give these out except to people at the council.

[% END %] [% IF body.areas.size == 0 %]

[% loc("This body covers no area. This means that it has no jurisdiction over problems reported at any location. Consequently, none of its categories will appear in the drop-down category menu when users report problems. Currently, users cannot report problems to this body.") %]
[% loc("Fix this by choosing an area covered in the Edit body details form below.") %]

[% END %] [% IF live_contacts == 0 %]

[% loc("This body has no contacts. This means that currently problems reported to this body will not be sent.") %]
[% loc("Add a contact using the form below.") %]

[% ELSIF c.config.STAGING_SITE and !c.config.STAGING_FLAGS.send_reports %]

[% 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."), "STAGING_FLAGS send_reports") %]

[% END %]
[% IF any_not_confirmed %] [% END %] [% WHILE ( cat = contacts.next ) %] [% IF any_not_confirmed %] [% END %] [% END %]
[% loc('Category') %] [% loc('State') %] [% loc('Last editor') %] [% loc('Note') %][% loc('Confirm') %]
[% cat.category | html %]
[% cat.email | html %]
[% loc('Confirmed') %]:  [%- IF cat.confirmed %][% loc('Yes') %][% ELSE %][% loc('No') %][% END %]
[% loc('Deleted') %]:  [%- IF cat.deleted %][% loc('Yes') %][% ELSE %][% loc('No') %][% END %]
[% loc('Private') %]:  [%- cat.non_public ? loc('Yes') : loc('No') %]
[% loc('Devolved') %]:  [%- IF body.can_be_devolved AND cat.send_method %][% loc('Yes') %][% ELSE %][% loc('No') %][% END %]
[% cat.editor | html %]
[% PROCESS format_time time=cat.whenedited %]
[% cat.note | html %]
[% IF any_not_confirmed %]

[% END %]

[% loc("Each contact for the body has a category, which is displayed to the public. Different categories can have the same contact (email address). This means you can add many categories even if you only have one contact for the body. ") %]

[% END %][%# Only show all the above if no errors with below form %]
[% IF NOT contact %]

[% loc('Add new category') %]

[% END %] [% IF errors %]
[% errors.values.join('
') %]
[% END %] [% INCLUDE 'admin/contact-form.html' %]
[% IF NOT errors and c.user.is_superuser %]

[% loc('Edit body details') %]

[% INCLUDE 'admin/body-form.html' %]
[% END %][%# Only show all the above if no errors with category form %] [% INCLUDE 'admin/footer.html' %]