aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/contact/index.html
blob: 8789fd03e7e143c6d157d29b0a26d61c1ae29120 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[% INCLUDE 'header.html',
    title = loc('Contact Us')
    robots = 'noindex,nofollow'
%]

<h1>[% loc('Contact the team') %]</h1>
 
<form method="post" action="/contact/submit" class="validate">

[% INCLUDE 'errors.html' %]

[% IF update %]

    <p>
    [% loc('You are reporting the following update for being abusive, containing personal information, or similar:') %]
    </p>

    <blockquote>
        <p>
            [% IF update.anonymous %]
                [% tprintf( loc('Update below added anonymously at %s'), prettify_dt( update.confirmed ) ) %]
            [% ELSE %]
                [% tprintf( loc('Update below added by %s at %s'), update.name, prettify_dt( update.confirmed ) ) | html %]
            [% END %]
        </p>

        <p>
            [% update.text | html %]
        </p>

    </blockquote>
    <input type="hidden" name="update_id" value="[% update.id %]">
    <input type="hidden" name="id" value="[% update.problem_id %]">

[% ELSIF problem %]
    <p>
    [% loc('You are reporting the following problem report for being abusive, containing personal information, or similar:') %]
    </p>
    
    <blockquote>
        <h2>[% problem.title_safe | html %]</h2>

        <p>
            [% IF problem.anonymous %]
                [% tprintf( loc('Reported anonymously at %s'), prettify_dt( problem.confirmed ) ) %]
            [% ELSE %]
                [% tprintf( loc('Reported by %s at %s'), problem.user.name, prettify_dt( problem.confirmed ) ) | html %]
            [% END %]
        </p>

        <p>
            [% problem.detail | html %]
        </p>

    </blockquote>
    <input type="hidden" name="id" value="[% problem.id %]">

[% ELSE %]

    [% INCLUDE 'contact/blurb.html' %]

[% END %]

[% IF field_errors.name %]
   <div class="form-error">[% field_errors.name %]</div>
[% END %]
<div class="form-field">
<label for="form_name">[% loc('Your name:') %]</label>
<input type="text" class="required" name="name" id="form_name" value="[% form_name | html %]" size="30"></div>


[% IF field_errors.em %]
   <div class="form-error">[% field_errors.em %]</div>
[% END %]
<div class="form-field">
<label for="form_email">[% loc('Your&nbsp;email:') %]</label>
<input type="text" class="required email" name="em" id="form_email" value="[% em | html %]" size="30"></div>

[% IF field_errors.subject %]
   <div class="form-error">[% field_errors.subject %]</div>
[% END %]
<div class="form-field">
<label for="form_subject">[% loc('Subject:') %]</label>
<input type="text" class="required" name="subject" id="form_subject" value="[% subject | html %]" size="30"></div>

[% INCLUDE 'contact/who.html' %]

[% IF field_errors.message %]
   <div class="form-error">[% field_errors.message %]</div>
[% END %]
<div class="form-field">
<label for="form_message">[% loc('Message:') %]</label>

<textarea class="required" name="message" id="form_message" rows="7" cols="50">[% message | html %]</textarea></div>
<div class="checkbox"><input type="submit" value="[% loc('Post') %]"></div>

</form>

[% TRY %][% INCLUDE 'contact/address.html' %][% CATCH file %][% END %]

[% INCLUDE 'footer.html' %]