aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/bromley/report/display.html
blob: 4c1a69bca2bdf19e35f1751e4e75fe218f3487a9 (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
[%
    PROCESS "report/photo-js.html";
    PROCESS "maps/${map.type}.html";

    problem_title = problem.title_safe _ ' - ' _ loc('Viewing a problem');
    INCLUDE 'header.html'
        title = problem_title
        rss = [ loc('Updates to this problem, FixMyStreet'), "/rss/$problem.id" ]
        robots = 'index, nofollow'
        bodyclass = 'mappage'
%]

[% map_html %]
</div>

<div id="map_sidebar">

[% IF login_success %]
    <p class='form-success'>[% loc('You have successfully signed in; please check and confirm your details are accurate:') %]</p>
[% END %]

[% INCLUDE 'report/banner.html' %]
[% INCLUDE 'report/_main.html' %]

[% IF problem.duplicate_of %]
    [% INCLUDE 'report/duplicate-no-updates.html' hide_header = 1 %]
[% END %]

[% INCLUDE 'report/display_tools.html' %]
[% INCLUDE 'report/updates.html' %]

[% IF problem.duplicate_of %]
    [% INCLUDE 'report/duplicate-no-updates.html' %]
[% ELSE %]
    [% INCLUDE 'report/update-form.html' %]
[% END %]
</div>

[% INCLUDE 'footer.html' %]

[% BLOCK name %]
    [% INCLUDE 'report/new/extra_name.html' %]

    [% IF c.user_exists %]
        [% names = c.user.split_name %]
    [% END %]
    <label for="form_first_name">[% loc('First Name') %]</label>
    [% IF field_errors.first_name %]
        <p class='form-error'>[% field_errors.first_name %]</p>
    [% END %]
    <input class="js-form-name form-control" type="text" value="[% names.first || first_name | html %]" name="first_name" id="form_first_name" placeholder="[% loc('Your first name') %]">

    <label for="form_last_name">[% loc('Last Name') %]</label>
    [% IF field_errors.last_name %]
        <p class='form-error'>[% field_errors.last_name %]</p>
    [% END %]
    <input class="js-form-name form-control" type="text" value="[% names.last || last_name | html %]" name="last_name" id="form_last_name" placeholder="[% loc('Your last name') %]">

    <div class="checkbox-group">
        <input type="checkbox" name="may_show_name" id="form_may_show_name" value="1"[% ' checked' IF update AND NOT update.anonymous %]>
        <label class="inline" for="form_may_show_name">[% loc('Show my name publicly') %]</label>
    </div>
    <div class="checkbox-group">
        <input type="checkbox" name="add_alert" id="form_add_alert" value="1"[% ' checked' IF add_alert %]>
        <label class="inline" for="form_add_alert">[% loc( 'Alert me to future updates' ) %]</label>
    </div>
[% END %]