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

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

<p>
FixMyBarangay has a RSS feeds and email alerts for local problems.
</p>

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

[% options = [ {
        id => 'council:1:Luz',
        text => 'Luz',
        uri => '/rss/reports/Luz'
    },
    {
        id => 'council:2:Basak_San_Nicolas',
        text => 'Basak San Nicolas'
        uri => '/rss/reports/Basak+San_Nicolas'
    } ];
%]

<form id="alerts" name="alerts" method="post" action="/alert/subscribe">

[% IF photos.size %]
<div class="sticky-sidebar" 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 'alert/_list.html' %]

</form>

[% INCLUDE 'footer.html' %]