aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/help/contact.rhtml
blob: 8d660ccd4530e7b8a9dd67f5b646bc198fdb63ca (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
<% @title = "Contact us" %>

<%= foi_error_messages_for :contact %>

<% form_for :contact do |f| %>

    <div class="form_note">
        <h1>Make a request for public, official information</h1>
    </div>

    <p class="form_note">
        <a href="/new">Go here</a> to make your request, in public, for information
        from UK public authorities.
    </p>

    <div class="form_note">
        <h1>Request information about yourself</h1>
        Our help page about <a href="/help/about#data_protection">data protection</a>
        explains how to request information about yourself from UK public authorities.
    </div>

    <div class="form_note">
        <h1>Contact the WhatDoTheyKnow team</h1>
    </div>

    <p class="form_note">
        We'd love to hear how you have found using this site.
    </p>

    <p class="form_note">
        Please read the  <a href="/help/about">about page</a> first, as it may
        answer your question quicker.
    </p>
    
    <% if not @user %>
        <p>
            <label class="form_label" for="contact_name">Your name:</label>
            <%= f.text_field :name, :size => 20 %>
            (or <%= link_to "sign in", signin_url(:r => request.request_uri) %>)
        </p>

        <p>
            <label class="form_label" for="contact_email">Your email:</label>
            <%= f.text_field :email, :size => 20 %>
        </p>
    <% end %>

    <p>
        <label class="form_label" for="contact_subject">Subject:</label> 
        <%= f.text_field :subject, :size => 50 %>
    </p>

    <p>
        <label class="form_label" for="contact_message">Message:</label> 
        <%= f.text_area :message, :rows => 5, :cols => 50 %>
    </p>

    <div class="form_button">
        <%= hidden_field_tag(:submitted_contact_form, 1) %>
        <%= submit_tag "Send message to the WhatDoTheyKnow team" %>
    </div>

<% end %>