aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/reports/body.html
blob: d6f9558a39ca608463f276dd8b2cb61dd0092666 (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
[% body_name = PROCESS 'reports/_body_name.html' | trim %]

[% IF ward %]
    [% name = "$ward.name, $body_name"
       thing = loc('ward')
    %]
[% ELSE %]
    [% name = body_name
       thing = loc('council')
    %]
[% END %]

[% IF c.cobrand.moniker.match('oxfordshire|lincolnshire') %]
    [% ward_text = 'View reports by division' %]
[% ELSIF c.cobrand.is_council %]
    [% ward_text = loc( 'View reports by ward' ) %]
[% ELSE %]
    [% ward_text = loc( 'Wards of this council' ) %]
[% END %]

[%
    PROCESS "report/photo-js.html";
    PROCESS "maps/${map.type}.html";
    SET bodyclass = 'mappage';
    INCLUDE 'header.html',
        title = tprintf(loc('%s - Summary reports'), name)
        rss = [ tprintf(loc('Problems within %s, %s', "First %s is the body name, second %s the site name"), name, site_name), rss_url ]
%]

[% map_html | safe %]

[% IF c.user && c.user.has_body_permission_to('planned_reports') %]
  <p class="sub-map-links" id="sub_map_links">
    <a id="fms_shortlist_all" class="hidden">[% loc('Shortlist all visible') %]</a>
  </p>
[% END %]

</div>
<div id="map_sidebar">
    <div id="side">

  [% IF ward %]
    <h1 id="reports_heading">
        [% ward.name %]
    </h1>
    <a href="[% body_url %]">[% body_name %]</a>
  [% ELSIF wards %]
    <h1 id="reports_heading">
    [% FOREACH w IN wards %][% w.name %][% IF NOT loop.last %], [% END %][% END %]
    </h1>
    <a href="[% body_url %]">[% body_name %]</a>
  [% ELSE %]
    <h1 id="reports_heading">
        [% body_name %]
    </h1>
  [% END %]

[% IF c.cobrand.moniker == 'hart' %]
    [% INCLUDE '_hart_hants_note.html' %]
[% END %]

[% IF NOT body.areas.size %]
    [% TRY %][% INCLUDE 'reports/_body_gone.html' %][% CATCH file %][% END %]
[% ELSE %]
    [% INCLUDE 'reports/_rss.html' %]
[% END %]

[% TRY %][% INCLUDE 'reports/cobrand_stats.html' %][% CATCH file %][% END %]

[% INCLUDE 'reports/_ward-list.html' %]

<section class="full-width">
[% INCLUDE "reports/_list-filters.html", use_form_wrapper = 1 %]
<div class="js-pagination">
[% INCLUDE 'pagination.html', param = 'p' %]
</div>
<div id="js-reports-list">
    [% INCLUDE 'reports/_problem-list.html' %]
</div>
<div class="js-pagination">
[% INCLUDE 'pagination.html', param = 'p' %]
</div>
</section>

    </div>
</div>
[% INCLUDE 'footer.html' %]