aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/alert/index.html
blob: 314008846e975e1fed2e7dc91dab844a31ebabb4 (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
[% INCLUDE 'header.html', title = loc('Local RSS feeds and email alerts'), bodyclass = 'twothirdswidthpage' %]

<h1>[% loc('Local RSS feeds and email alerts') %]</h1>

<p>
[% IF c.cobrand.is_council %]
FixMyStreet has a variety of RSS feeds and email alerts for local problems, including
alerts for all problems within a particular ward, or all problems
within a certain distance of a particular location.
[% ELSE %]
[% loc('FixMyStreet has a variety of RSS feeds and email alerts for local problems, including
alerts for all problems within a particular ward or council, or all problems
within a certain distance of a particular location.') %]
[% END %]
</p>

[% IF location_error %]
  <div class="error">[% location_error %]</div>
[% ELSE %]
  [% INCLUDE 'errors.html' %]
[% END %]

<p>
[% IF c.cobrand.is_council %]
To find out what local alerts we have for you, please enter your [% c.cobrand.council_area %] postcode or street name and area:
[% ELSE %]
[% loc('To find out what local alerts we have for you, please enter your postcode or street name and area' ) %]
[% END %]
</p>
<form method="get" action="/alert/list" class="full-width">
  <fieldset>
    <div class="form-txt-submit-box">
      <input type="text" name="pc" value="[% pc | html %]" placeholder="[% tprintf(loc('e.g. ‘%s’ or ‘%s’'), c.cobrand.example_places) %]">
      <input class="green-btn" type="submit" value="[% loc('Go') %]">
    </div>
  </fieldset>
</form>

[% IF photos.size %]
<div id="alert_recent">
  <aside>
    <h2>[% loc('Some photos of recent reports') %]</h2>
    [% FOREACH p IN photos;
        photo = p.get_photo_params;
    %]
        <a href="/report/[% p.id %]"><img border="0" height="100"
            src="[% photo.url_tn %]" alt="[% p.title | html %]" title="[% p.title | html %]"></a>
    [% END %]
  </aside>
</div>
[% END %]

[% INCLUDE 'footer.html' %]