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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
[%
PROCESS "maps/${map.type}.html";
problem_title = problem.title _ ' - ' _ loc('Viewing a problem') | html;
INCLUDE 'header.html'
title = problem_title
rss = [ loc('Updates to this problem, FixMyStreet'), "/rss/$problem.id" ]
robots = 'index, nofollow'
%]
[% map_html %]
</div>
<div id="side">
[% IF banner.id %]
<p class="banner" id="[% banner.id %]">
[% banner.text %]
</p>
[% END %]
[% INCLUDE 'report/_main.html' %]
<p align="right">
<small>
<a rel="nofollow" href="[% c.uri_for( '/contact', { id => problem.id } ) %]">[% loc('Offensive? Unsuitable? Tell us' ) %]</a>
</small>
</p>
<p style="padding-bottom: 0.5em; border-bottom: dotted 1px #999999;" align="right">
<a href="[% c.uri_for( '/around', { lat => short_latitude, lon => short_longitude } ) %]">[% loc( 'More problems nearby' ) %]</a>
</p>
<div id="alert_links">
<a rel="nofollow" id="email_alert" href="[% c.uri_for( '/alert/subscribe', { id => problem.id } ) %]">[% loc('Email me updates' ) %]</a>
<form action="[% c.uri_for( '/alert/subscribe' ) %]" method="post" id="email_alert_box">
<p>[% loc('Receive email when updates are left on this problem.' ) %]</p>
<label class="n" for="alert_rznvy">[% loc('Email:') %]</label>
<input type="email" name="rznvy" id="alert_rznvy" value="[% email | html %]" size="30">
<input type="hidden" name="id" value="[% problem.id %]">
<input type="hidden" name="type" value="updates">
<input type="submit" value="[% loc('Subscribe') %]">
[% cobrand_alert_fields %]
</form>
<a href="[% c.uri_for( '/rss', problem.id ) %]">
<img src="/i/feed.png" width="16" height="16" title="[% loc('RSS feed') %]" alt="[% loc('RSS feed of updates to this problem' ) %]" border="0" style="vertical-align: middle">
</a>
</div>
[% INCLUDE 'report/updates.html' %]
<div id="update_form">
<h2>
[% loc( 'Provide an update') %]
</h2>
[% IF c.cobrand.moniker != 'emptyhomes' %]
<p>
<small>[% loc( 'Please note that updates are not sent to the council. If you leave your name it will be public. Your information will only be used in accordance with our <a href="/faq#privacy">privacy policy</a>' ) %]</small>
</p>
[% END %]
[% INCLUDE 'errors.html' %]
<form method="post" action="[% c.uri_for( '/report/update' ) %]" name="updateForm" class="fieldset validate"[% IF c.cobrand.allow_photo_upload %] enctype="multipart/form-data"[% END %]>
<input type="hidden" name="submit_update" value="1">
<input type="hidden" name="id" value="[% problem.id | html %]">
[% IF field_errors.update %]
<div class='form-error'>[% field_errors.update %]</div>
[% END %]
<div class="form-field">
<label for="form_update">[% loc( 'Update:' ) %]</label>
<textarea name="update" id="form_update" rows="7" cols="30" required>[% update.text | html %]</textarea>
</div>
[% IF c.user && c.user.belongs_to_council( problem.council ) %]
<div class="form-field">
<label for="form_state">[% loc( 'State:' ) %]</label>
<select name="state" id="form_state">
[% FOREACH state IN [ ['confirmed', loc('Open')], ['investigating',
loc('Investigating')], ['planned', loc('Planned')], ['in progress',
loc('In Progress')], ['closed', loc('Closed')], ['fixed', loc('Fixed')] ] %]
<option [% 'selected ' IF state.0 == problem.state %] value="[% state.0 %]">[% state.1 %]</option>
[% END %]
</select>
</div>
[% ELSE %]
[% IF problem.is_fixed AND c.user_exists AND c.user.id == problem.user_id %]
<div class="checkbox">
<input type="checkbox" name="reopen" id="form_reopen" value="1"[% ' checked' IF update.mark_open %]>
<label for="form_reopen">[% loc('This problem has not been fixed') %]</label>
</div>
[% ELSIF !problem.is_fixed %]
<div class="checkbox">
<input type="checkbox" name="fixed" id="form_fixed" value="1"[% ' checked' IF update.mark_fixed %]>
<label for="form_fixed">[% loc('This problem has been fixed') %]</label>
</div>
[% END %]
[% END %]
[% IF c.cobrand.allow_photo_upload %]
[% IF field_errors.photo %]
<div class='form-error'>[% field_errors.photo %]</div>
[% END %]
<div id="fileupload_normalUI">
[% IF upload_fileid %]
<p>[% loc('You have already attached a photo to this update, attaching another one will replace it.') %]</p>
<input type="hidden" name="upload_fileid" value="[% upload_fileid %]">
[% END %]
<label for="form_photo">[% loc('Photo:') %]</label>
<input type="file" name="photo" id="form_photo" style="width:20em">
</div>
[% END %]
[% IF c.user_exists %]
[% INCLUDE name %]
<div class="checkbox">
<input type="submit" id="update_post" value="[% loc('Post') %]">
</div>
[% ELSE %]
[% IF field_errors.email %]
<div class='form-error'>[% field_errors.email %]</div>
[% END %]
<div class="form-field">
<label for="form_rznvy">[% loc('Your email:' ) %]</label>
<input type="email" name="rznvy" id="form_rznvy" value="[% update.user.email | html %]" size="30" required>
</div>
<div id="form_sign_in">
<h3>[% loc("Now to submit your update… do you have a FixMyStreet password?") %]</h3>
<div id="form_sign_in_yes">
[% IF field_errors.password %]
<div class='form-error'>[% field_errors.password %]</div>
[% END %]
<p>
<label class="n" for="password_sign_in">[% loc('<strong>Yes</strong>, I have a password:') %]</label>
<input type="password" name="password_sign_in" id="password_sign_in" value="" size="25">
</p>
<div class="fieldset">
<p>
<input type="checkbox" id="remember_me" name="remember_me" value='1'[% ' checked' IF remember_me %]>
<label class="n" for="remember_me">
[% loc('Keep me signed in on this computer') %]
</label>
</p>
<p>
<input type="submit" name="submit_sign_in" id="submit_sign_in" value="[% loc('Post') %]">
</p>
</div>
</div>
<div id="form_sign_in_no">
<p>[% loc('<strong>No</strong>, let me confirm my update by email:') %]</p>
<div class="fieldset">
[% INCLUDE name %]
<div class="form-field">
<label for="password_register">[% loc('Enter a new password:') %]</label>
<input type="password" name="password_register" id="password_register" value="" size="25">
</div>
<p style="clear:both"><small>[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]</small></p>
<p>
<input type="submit" name="submit_register" id="submit_register" value="[% loc('Post') %]">
</p>
</div>
</div>
</div>
[% END %]
[% cobrand_update_fields %]
</form>
</div>
</div>
[% INCLUDE 'footer.html' %]
[% BLOCK name %]
[% IF field_errors.name %]
<div class='form-error'>[% field_errors.name %]</div>
[% END %]
<div>
<label for="form_name">[% loc('Your name:') %]</label>
<input type="text" name="name" id="form_name" value="[% update.name || c.user.name | html %]" size="25">
</div>
<div class="checkbox">
<input type="checkbox" name="may_show_name" id="form_may_show_name" value="1"[% ' checked' UNLESS update.anonymous %]>
<label for="form_may_show_name">[% loc('Show my name publicly') %]</label>
<small>[% loc('(we never show your email)') %]</small>
</div>
<div class="checkbox">
<input type="checkbox" name="add_alert" id="form_add_alert" value="1"[% ' checked' IF add_alert %]>
<label for="form_add_alert">[% loc( 'Alert me to future updates' ) %]</label>
</div>
[% END %]
|