blob: ec07e2e911f0d2deea7a97950325a53fda2dd3f0 (
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
|
[% INCLUDE 'header.html', title => '' %]
[% IF error %]
<p class="error">[% error %]</p>
[% END %]
<p id="expl">
[%
subhead
= c.cobrand.moniker == 'southampton'
? '(like graffiti, fly tipping, or broken paving slabs)'
: loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)');
%]
<strong>[% loc('Report, view, or discuss local problems') %]</strong>
[% IF subhead != ' ' %]
<br><small>[% subhead %]</small>
[% END %]
</p>
[% # --- insert iPhone details, not converted from old cgi script yet
#
# if (my $url = mySociety::Config::get('IPHONE_URL')) {
# my $getiphone = _("Get FixMyStreet on your iPhone");
# my $new = _("New!");
# if ($q->{site} eq 'fixmystreet') {
# $out .= <<EOF
# <p align="center" style="margin-bottom:0">
# <img width="23" height="12" alt="$new" src="/i/new.png" border="0">
# <a href="$url">$getiphone</a>
# </p>
# EOF
# }
%]
[%
question
= c.cobrand.enter_postcode_text()
|| loc("Enter a nearby GB postcode, or street name and area");
%]
<form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm">
<label for="pc">[% question %]:</label>
<input type="text" name="pc" value="" id="pc" size="10" maxlength="200">
<input type="submit" value="[% loc('Go') %]" id="submit">
[% c.cobrand.form_elements('postcodeForm') %]
</form>
<div id="front_intro">
<h2>[% loc('How to report a problem') %]</h2>
<ol>
<li>[% question %]</li>
<li>[% loc('Locate the problem on a map of the area') %]</li>
<li>[% loc('Enter details of the problem') %]</li>
<li>[% loc('We send it to the council on your behalf') %]</li>
</ol>
[% INCLUDE "front_stats.html" %]
</div>
[%
recent_photos = c.cobrand.recent_photos(3);
probs = c.cobrand.recent();
%]
[% IF probs.size || recent_photos.size %]
<div id="front_recent">
[% IF recent_photos.size %]
<h2>[% loc('Photos of recent reports') %]</h2>
[% FOREACH p IN recent_photos %]
<a href="/report/[% p.id %]"><img border="0" height="100"
src="/photo?tn=1;id=[% p.id %]" alt="[% p.title | html %]" title="[% p.title | html %]"></a>
[% END %]
[% END %]
[% IF probs.size %]
<h2>[% loc('Recently reported problems') %]</h2>
<ul>
[% FOREACH p IN probs %]
<li>
<a href="/report/[% p.id %]">[% p.title | html %]</a>
</li>
[% END %]
</ul>
[% END %]
</div>
[% END %]
[% IF c.cobrand.moniker == 'emptyhomes' %]
<div id="eha_advert">
Now is the best time to turn empty properties into empty homes... Don't miss it!
<a href="http://www.emptyhomes.com/EHConference2011.html">Home Again: Empty Homes National Conference 2011</a>
</div>
[% END %]
[% INCLUDE 'footer.html' %]
|