aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/upload_response.rhtml
blob: 0f8329f8ab20a8d727eb400daad038028b91f2b2 (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
<% @title = "Respond to the FOI request '" + h(@info_request.title) + "' made by " + h(@info_request.user.name) %>

<%= foi_error_messages_for :comment %>

<h1>Respond to the FOI request '<%=request_link(@info_request)%>' made by <%=user_link(@info_request.user) %></h1>

<p>
    Your response will <strong>appear on the Internet</strong>, <a href="/help/officers">read why</a> and answers to other questions.
</p>

<h2>Respond by email</h2>

<p>You should have received a copy of the request by email, and you can respond
by <strong>simply replying</strong> to that email. For your convenience, here is the address:
<a href="mailto:<%=h @info_request.incoming_email%>"><%=h @info_request.incoming_email%></a>.
You may <strong>include attachments</strong>. If you would like to attach a
file too large for email, use the form below.
</p>


<h2>Respond using the web</h2>

<p>Enter your response below. You may attach one file (use email, or 
<a href="/help/contact">contact us</a> if you need more).</p>

<% form_tag '', :html => { :id => 'upload_response_form' }, :multipart => true do %>
    <p>
        <label class="form_label" for="body">Response:</label> 
                <%= text_area_tag :body, "", :rows => 10, :cols => 55 %>
    </p>

    <p>
	    <label class="form_label" for="file_1">Attachment (optional):</label> 
        <%= file_field_tag :file_1, :size => 35 %>
    </p>

    <p>
        <%= hidden_field_tag 'submitted_upload_response', 1 %>
        <%= submit_tag "Upload FOI response" %>
        (<strong>patience</strong>, especially for large files, it may take a while!)
    </p>

<% end %>