[% INCLUDE 'admin/header.html' title=tprintf(loc('Response Template for %s'), body.name) -%] [% rt = response_template %] [% UNLESS rt.id %]

[% loc('New template') %]

[% END %]
[% IF errors %]

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

[% END %] [% IF errors.title %]
[% errors.title %]
[% END %]

[% loc('This is a private name for this template so you can identify it when updating reports or editing in the admin.') %]

[% loc('Title:') %]

[% loc('This is the public text that will be shown on the site.') %]

[% loc('Text:') %]

[% 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 %]
[% END %]

[% loc('If you want to use this template to prefill the update field when changing a report’s state, select the state here.') %]

[% INCLUDE 'report/inspect/state_groups_select.html' current_state=rt.state include_empty=1 %]

[% IF errors.external_status_code %]
[% errors.external_status_code %]
[% END %]

[% loc('If you want to use this template to prefill the update field when a report’s external (e.g. Confirm) status code changes, enter the status code here.') %]

[% IF errors.auto_response %]
[% errors.auto_response %]
[% END %]

[% loc('If ticked, this template will be used for Open311 updates that put problems in this state.') %]

[% IF rt.id %]

[% END %]
[% INCLUDE 'admin/footer.html' %]