[% PROCESS "report/photo-js.html"; PROCESS "maps/zurich.html"; SET bodyclass = 'mappage'; INCLUDE 'admin/header.html' title = tprintf(loc('Editing problem %d'), problem.id ); PROCESS 'admin/report_blocks.html' -%] [% map_html | safe %]
[% pstate = problem.get_extra_metadata('closure_status') || problem.state %]
» [% loc('View report on site' )%]
» Standort in Liegenschafteninventar anzeigen
» [% loc('Street View') %]
[% IF problem.is_fixed || problem.is_closed || problem.is_hidden %]
[% loc('Details:') %]
[% problem.detail | html %]
[% IF problem.extra.original_detail %]
[% detail_safe = problem.extra.original_detail | html; tprintf( loc('originally entered: “%s”'), detail_safe ) %]
[% END %] [% ELSE %]
[% IF problem.extra.original_detail %]
[% detail_safe = problem.extra.original_detail | html; tprintf( loc('originally entered: “%s”'), detail_safe ) %]
[% END %] [% END %]
[% PROCESS format_date this_date=problem.created %] [% problem.created.hms %]
[% c.cobrand.admin_district_lookup(problem) %]
[% SET fields = problem.get_extra_fields; IF fields.size %]
[% FOR f IN fields %] [% f.description %] [% f.value %]
[% END %]
[% END %]
[% IF problem.name %][% problem.name | html %][% ELSE %][% loc('(No name)') %][% END %]
[% problem.user.email | html %] [% IF NOT problem.extra.email_confirmed %][% loc('Unconfirmed') %][% END %]
[% IF problem.user.phone %][% problem.user.phone | html %][% ELSE %][% loc('(No phone number)') %][% END %]
[% loc('Category:') %]
[% problem.category_display | html %]
[% loc('Time spent (in minutes):') %]
[% problem.get_time_spent %]
[% IF problem.photo %]
[% FOR photo IN problem.photos %]
[% END %] [% END %]
[% status_message | safe %] [% IF problem.non_public %]

[% END %]
[% loc('State:') %]
    [% IF problem.state == 'confirmed' %]
  • [% list = FOR body IN bodies %] [%- NEXT UNLESS body.parent.id == c.user.from_body.id %] [% END %] [% IF admin_type != 'super' AND list %]
  • [% END %] [% END %]
[% IF problem.state == 'feedback pending' %] [%# 3rd party messages sent for Extern/Wunsch states %] [% SWITCH pstate %] [% CASE ['external','wish'] %]
  • [% IF pstate == 'external' %] [% END %]
  • [% INCLUDE 'admin/response_templates_select.html' for='external_body' %]
[% END %] [%# Public response field shown for Ruckmeldung ausstehend states # (e.g. various pstates) %] [% UNLESS problem.non_public %]
  • [% INCLUDE 'admin/response_templates_select.html' for='status_update' %]
[% END %] [% END %]

[% IF show_publish_response %] [%# While we call this 'publish_response', the response will not actually # be "published" for these cases: Hidden / Not contactable (for these, # only a private email will be sent to the user. However, in all cases, # this is the end of processing, so we mark this with the same text used # for 'No further updates %] [% END %] [%# This button simply saves changes, but does NOT close the report (though # it may trigger other workflow %]

[% IF c.cobrand.problem_has_public_response(problem) || c.cobrand.problem_has_user_response(problem) %]

[% loc('Public response:') %]

[% problem.extra.public_response | html_para %]
[% END %] [% SWITCH problem.state %] [% CASE ['external','wish'] %]

[% IF problem.state == 'external' %] [% loc('Message to external body:') %] [% ELSE %] [% loc('Message to competent body:') %] [% END %] [% problem.body.endpoint %]

[% problem.extra.external_message | html_para %]
[% END %] [% INCLUDE 'admin/list_updates.html' %]
[% INCLUDE 'admin/footer.html' %]