aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/report/display_tools.html
blob: 8a756a9486f9f58056e1d5f6f9256337c3bb81fd (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
<div class="shadow-wrap">
    <ul id="key-tools">
        [% IF c.user_exists AND c.cobrand.users_can_hide AND c.user.belongs_to_body( problem.bodies_str ) %]
        <li><form method="post" action="/report/delete/[% problem.id %]" id="remove-from-site-form">
            <input type="hidden" name="token" value="[% csrf_token %]">
            <input type="submit" id="key-tool-report-abuse" class="abuse btn" data-confirm="[% loc('Are you sure?') %]" name="remove_from_site" value="[% loc('Remove from site') %]">
        </form></li>
        [% ELSIF c.cobrand.moniker != 'zurich' %]
        <li><a rel="nofollow" id="key-tool-report-abuse" class="abuse" href="[% c.uri_for( '/contact', { id => problem.id } ) %]">[% loc('Unsuitable?' ) %]</a></li>
        [% END %]
        [% IF c.cobrand.moniker != 'zurich' %]
        <li><a rel="nofollow" id="key-tool-report-updates" class="feed" href="[% c.uri_for( '/alert/subscribe', { id => problem.id } ) %]">[% loc('Get updates' ) %]</a></li>
        [% END %]
        [% IF c.cobrand.moniker == 'fixmystreet' %]
        <li><a rel="nofollow" id="key-tool-report-share" class="share" href="#report-share">[% loc('Share') %]</a></li>
        [% END %]
      [% IF c.cobrand.moniker == 'zurich' %]
        <li><a class="chevron" id="key-tool-problems-nearby" href="[% c.uri_for( '/around', { lat => latitude, lon => longitude } ) %]">[% loc( 'Problems on the map' ) %]</a></li>
      [% ELSE %]
        <li><a class="chevron" id="key-tool-problems-nearby" href="[% c.uri_for( '/around', { lat => latitude, lon => longitude } ) %]">[% loc( 'Problems nearby' ) %]</a></li>
      [% END %]
    </ul>

[% IF c.cobrand.moniker == 'fixmystreet' %]
    <div id="report-share" class="hidden-js" align="center">
        <a class="btn btn--social btn--twitter" href="https://twitter.com/intent/tweet?text=I%20just%20viewed%20this%20report:%20&lsquo;[% problem.title_safe | uri %]&rsquo;&amp;via=fixmystreet&amp;related=mySociety">
            <img alt="" src="/i/twitter-icon-32.png" width="17" height="32">
            Tweet
        </a>
        <a class="btn btn--social btn--facebook" href="https://www.facebook.com/sharer/sharer.php?u=[% c.cobrand.base_url %][% c.req.uri.path %]">
            <img alt="" src="/i/facebook-icon-32.png" width="17" height="32">
            Share
        </a>
    </div>
[% END %]

<div id="report-updates-data" class="hidden-js">
    <form action="[% c.uri_for( '/alert/subscribe' ) %]" method="post">
        <p><a href="[% c.uri_for( '/rss', problem.id ) %]">
            <img src="/i/feed.png" width="16" height="16" title="[% loc('RSS feed') %]" alt="[% loc('RSS feed of updates to this problem' ) %]" border="0">
        </a>
        [% loc('Receive email when updates are left on this problem.' ) %]</p>
        <fieldset>
        <label class="hidden n" for="alert_rznvy">[% loc('Your email') %]</label>
        <div class="form-txt-submit-box">
          [% IF NOT c.user_exists %]
            <input type="email" class="form-control" name="rznvy" id="alert_rznvy" value="[% email | html %]" size="30" placeholder="[% loc('Your email') %]">
          [% END %]
            <input class="green-btn" type="submit" value="[% loc('Subscribe') %]">
        </div>
        <input type="hidden" name="token" value="[% csrf_token %]">
        <input type="hidden" name="id" value="[% problem.id %]">
        <input type="hidden" name="type" value="updates">
        </fieldset>
    </form>
</div>

</div>