blob: 63c6b5e6fb18cceca62225d0f143c8d4c934beca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
[%
PROCESS "report/photo-js.html";
PROCESS "maps/zurich.html";
PROCESS 'admin/header.html'
title = tprintf(loc('Editing problem %d'), problem.id ),
bodyclass = 'mappage';
PROCESS 'admin/report_blocks.html'
-%]
[% map_html %]
</div>
<form method="post" action="[% c.uri_for( 'report_edit', problem.id ) %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8">
<input type="hidden" name="token" value="[% token %]" >
<input type="hidden" name="submit" value="1" >
<div class="admin-report-edit admin-report-edit--details">
<dl>
<dd class="screen-only">» <a href="[% c.uri_for_email( '/report', problem.id ) %]">[% loc('View report on site' )%]</a></dd>
<dd class="screen-only">» <a href="http://webgis.intra.stzh.ch/AV_Online/Direct.asp?Map=AV&Search=Koord&West=[% problem.local_coords.0 %]&Nord=[% problem.local_coords.1 %]&B=300" target="_blank">Standort in AV-Online anzeigen</a></dd>
<dd class="screen-only">» <a href="http://webgis.intra.stzh.ch/stapo/GoogleStreetView.asp?lat=[% problem.latitude %]&lon=[% problem.longitude %]" target="_blank">[% loc('Street View') %]</a></dd>
<dt><span class="mock-label">[% loc('Details:') %]</span></dt>
<dd>[% problem.detail | html %]</dd>
[% IF problem.extra.original_detail %]
<dd>[%
SET safe = problem.extra.original_detail | html;
tprintf( loc('originally entered: “%s”'), safe )
%]</dd>
[% END %]
<dt class="print-only">[% loc('Reported:') %] <!-- Meldedatum --></dt>
<dd class="screen-no-space-after">
<strong>[% PROCESS format_date this_date=problem.created %] [% problem.created.hms %]</strong>
</dd>
<dt class="print-only">[% loc('Coordinates:') %] <!-- Koordinaten --></dt>
<dd class="screen-no-space-after print-no-space-after">
[% problem.local_coords.join(',') %]
<input type="hidden" name="latitude" id="fixmystreet.latitude" value="[% problem.latitude %]">
<input type="hidden" name="longitude" id="fixmystreet.longitude" value="[% problem.longitude %]">
</dd>
<dd class="screen-no-space-after print-no-space-after">
[% IF problem.used_map %]
[% loc('Used map') %]
[% ELSE %]
[% loc("Didn't use map") %]
[% END %]
</dd>
<dd>[%
SET safe = problem.postcode | html;
tprintf( loc('originally entered: “%s”'), safe )
%]</dd>
<dt class="print-only">[% loc('Reported by:') %] <!-- Meldende Person --></dt>
<dd>
<strong>[% IF problem.name %][% problem.name | html %][% ELSE %][% loc('(No name)') %][% END %]</strong>
<input type='hidden' name='name' id='name' value='[% problem.name | html %]'>
<br>
[% problem.user.email | html %]
[% IF NOT problem.extra.email_confirmed %]<span class="error">[% loc('Unconfirmed') %]</span>[% END %]
<input type='hidden' id='email' name='email' value='[% problem.user.email | html %]'>
<br>
[% IF problem.user.phone %][% problem.user.phone | html %][% ELSE %]<em>[% loc('(No phone number)') %]</em>[% END %]
</dd>
<dt>[% loc('Category:') %] <!-- Kategorie --></dt>
<dd>[% problem.category | html %]</dd>
<dt class="print-only">[% loc('State:') %] <!-- Status --></dt>
<dd class="print-only">[% states.${problem.state} %]</dd>
<dt>[% loc('Time spent (in minutes):') %]</dt>
<dd>[% problem.get_time_spent %]</dd>
<dd>
[% status_message %]
</dd>
[% IF problem.photo %]
<dd>
[% FOR photo IN problem.photos %]
<div class="update-img">
<a href="[% c.cobrand.base_url %][% photo.url_temp_full %]" rel="fancy">
<img alt="Photo of this report" src="[% c.cobrand.base_url %][% photo.url_temp %]">
<span>zoom</span>
</a>
</div>
[% END %]
</dd>
[% END %]
</dl>
</div>
<div class="admin-report-edit admin-report-edit--interact">
<script type="text/javascript">
$(function(){
$('#map_box .noscript').clone().removeClass('noscript').addClass('map_clone print-only').prependTo('.admin-report-edit--interact');
});
</script>
<p align="right" class="screen-only"><input type="submit" name="send_back" value="[% loc('Not for my subdivision') %]"></p>
<p align="right" class="screen-only"><input type="submit" name="not_contactable" value="[% loc('Customer not contactable') %]"></p>
<ul class="no-bullets screen-only">
<li>
<label for="new_internal_note">[% loc('New internal note:') %]</label>
<textarea name='new_internal_note' id='new_internal_note' cols=60 rows=4></textarea>
</li>
<li>
<label for="status_update">[% loc('New note to DM:') %]</label>
<textarea name='status_update' id='status_update' cols=60 rows=4></textarea>
</li>
</ul>
<p class="screen-only">
<label for="time_spent">[% loc('Time spent (in minutes):') %]</label>
<input type="text" name="time_spent" id="form_time_spent" style="width: 4em" value="0">
<script>
$(function () {
$('#form_time_spent').spinner({
spin: function (e, ui) {
if (ui.value < 0) { return false }
}
});
});
</script>
</p>
<p class="clearfix screen-only">
<input style="float:left" type="submit" name="Submit changes" value="[% loc('Submit changes') %]" >
<input style="float:right" type="submit" name="no_more_updates" value="[% loc('No further updates') %]">
</p>
[% INCLUDE 'admin/list_updates.html' %]
</div>
</form>
<div id="print_report_map" class="print-only">
[% INCLUDE 'maps/noscript_map.html' map=print_report_map nsm_prefix="large_" %]
</div>
[% INCLUDE 'admin/footer.html' %]
|