blob: 5a5efee301f1a45cbed601a0c876121501ffc3b1 (
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
|
[%
SET bodyclass = 'mappage';
PROCESS "report/photo-js.html";
PROCESS "maps/${map.type}.html";
INCLUDE 'header.html', title = loc('Questionnaire');
%]
[% map_html %]
</div>
<h1>[% loc('Questionnaire') %]</h1>
<h2 class="questionnaire-report-header">[% loc('Your report') %]</h2>
<div class="questionnaire-report-reminder">
[% INCLUDE 'report/photo.html' object=problem %]
<h3 class="questionnaire-report-reminder__report-title">
<a href="/report/[% problem.id %]">[% problem.title | html %]</a>
</h3>
<p class="questionnaire-report-reminder__report-meta">[% problem.meta_line(c) | html %]</p>
[% IF updates.size %]
<p class="questionnaire-report-reminder__last-update-header">
<strong>Last update</strong>
<a href="/report/[% problem.id %]">Show all updates</a>
</p>
<p class="questionnaire-report-reminder__last-update">“[% add_links( updates.last.text ) %]”</p>
[% END %]
</div>
<form method="post" action="/questionnaire/submit" id="questionnaire"
[%- IF c.cobrand.allow_photo_upload -%]
enctype="multipart/form-data"
[%- END -%]
>
<input type="hidden" name="token" value="[% token | html %]">
[% IF errors %]
<ul class="error questionnaire-errors">
<li>[% errors.join("</li>\n<li>") %]</li>
</ul>
[% END %]
<p>
[% loc('An update marked this problem as fixed.') IF problem.is_fixed %]
[% loc('Has this problem been fixed?') %]
</p>
<p class="radio-segmented-control">
<input type="radio" name="been_fixed" id="been_fixed_yes" value="Yes"[% ' checked' IF been_fixed == 'Yes' %]>
<label class="inline" for="been_fixed_yes">[% loc('Yes') %]</label>
<input type="radio" name="been_fixed" id="been_fixed_no" value="No"[% ' checked' IF been_fixed == 'No' %]>
<label class="inline" for="been_fixed_no">[% loc('No') %]</label>
<input type="radio" name="been_fixed" id="been_fixed_unknown" value="Unknown"[% ' checked' IF been_fixed == 'Unknown' %]>
<label class="inline" for="been_fixed_unknown">[% loc('Don’t know') %]</label>
</p>
[% UNLESS answered_ever_reported %]
<p>[% loc('Have you ever reported a problem to a council before, or is this your first time?') %]</p>
<p class="radio-segmented-control">
<input type="radio" name="reported" id="reported_yes" value="Yes"[% ' checked' IF reported == 'Yes' %]>
<label class="inline" for="reported_yes">[% loc('Reported before') %]</label>
<input type="radio" name="reported" id="reported_no" value="No"[% ' checked' IF reported == 'No' %]>
<label class="inline" for="reported_no">[% loc('First time') %]</label>
</p>
[% END %]
<p>[% loc('If you wish to leave a public update on the problem, please enter it here
(please note it will not be sent to the council).') %]</p>
<p><textarea name="update" rows="7" cols="30" placeholder="[% loc('What was your experience of getting the problem fixed?') %]">[% update | html %]</textarea></p>
[% IF c.cobrand.allow_photo_upload %]
<input type="hidden" name="upload_fileid" value="[% upload_fileid %]">
<label for="form_photo">[% loc('Photo') %]</label>
[% IF field_errors.photo %]
<p class='form-error'>[% field_errors.photo %]</p>
[% END %]
<div id="form_photos">
[% IF upload_fileid %]
<p>[% loc('You have already attached photos to this update. Note that you can attach a maximum of 3 to this update (if you try to upload more, the oldest will be removed).') %]</p>
[% FOREACH id IN upload_fileid.split(',') %]
<img align="right" src="/photo/[% id %].temp.jpeg" alt="">
[% END %]
[% END %]
<input type="file" name="photo1" id="form_photo">
<input type="file" name="photo2" id="form_photo2">
<input type="file" name="photo3" id="form_photo3">
</div>
[% END %]
[% IF c.cobrand.moniker != 'emptyhomes' %]
<div class="js-another-questionnaire">
<p>[% loc('Would you like to receive another questionnaire in 4 weeks, reminding you to check the status?') %]</p>
<p class="radio-segmented-control">
<input type="radio" name="another" id="another_yes" value="Yes"[% ' checked' IF another == 'Yes' %]>
<label class="inline" for="another_yes">[% loc('Yes') %]</label>
<input type="radio" name="another" id="another_no" value="No"[% ' checked' IF another == 'No' %]>
<label class="inline" for="another_no">[% loc('No') %]</label>
</p>
</div>
[% END %]
<p><input type="submit" name="submit" value="[% loc('Submit questionnaire') %]"></p>
</form>
[% INCLUDE 'footer.html' %]
|