aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/show_response.rhtml
blob: 40c3b3d5b98be091ac7b8b099f4ae30d539375d5 (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
<% if @incoming_message.nil? %>
    <% @title = "Send follow up to '" + h(@info_request.title) + "'" %>
<% elsif @incoming_message.recently_arrived %>
    <% @title = "New response to '" + h(@info_request.title) + "'" %>
<% else %>
    <% @title = "Response to '" + h(@info_request.title) + "'" %>
<% end %>

<%= foi_error_messages_for :incoming_message, :outgoing_message %>

<% if @gone_postal %>
    <div class="gone_postal_help">
        <h1><%= _('Which of these is happening?') %></h1>

        <dl>

        <dt>
            <%= _('The authority say that they <strong>need a postal
            address</strong>, not just an email, for it to be a valid FOI request') %>
        </dt>
        <dd>
            <%= _('The law, the Ministry of Justice and the Information Commissioner
            all say that an email is sufficient (<a href="%s">more details</a>).
            At the bottom of this page, write a reply to the authority explaining this to them.') % [help_privacy_path + '#full_address'] %>
        </dd>

        <dt>
            <%= _('The authority only has a <strong>paper copy</strong> of the information.') %>
        </dt>
        <dd>
            <%= _('At the bottom of this page, write a reply to them trying to persuade them to scan it in
            (<a href="%s">more details</a>).') % [help_privacy_path + '#postal_answer'] %>
        </dd>

        <dt>
            <%= _('You want to <strong>give your postal address</strong> to the authority in private.') %>
        </dt>
        <dd>
           <%= _('To do that please send a private email to ') %><%=h(@postal_email_name)%> 
            &lt;<%=link_to h(@postal_email), "mailto:" + @postal_email%>&gt;
		  <%= _('containing your postal address, and asking them to reply to this request.
            Or you could phone them.') %>
            
            <%= _('When you receive the paper response, please help
            others find out what it says:') %>
            <ul>
                <li><%= _('Add an annotation to your request with choice quotes, or
                a <strong>summary of the response</strong>.') %></li>
                <li><%=  _('If you can, scan in or photograph the response, and <strong>send us
                    a copy to upload</strong>.') %></li>
            </ul>
        </dd>

        </dl>
    </div>
<% end %>

<div id="show_response_view">
    <% if !@incoming_message.nil? %>
        <% if @is_owning_user %>
            <% if @incoming_message.recently_arrived %>
                <h2><%= _('New response to your request') %> '<%= request_link @info_request %>'</h2>
            <% else %>
                <h2><%= _('Response to your request') %>  '<%= request_link @info_request %>'</h2>
            <% end %>
        <% else %>
            <% if @incoming_message.recently_arrived %>
		<h2><%= _('New response to {{law_used_short}} request',:law_used_short => h(@info_request.law_used_short))%> '<%= request_link @info_request %>'</h2>
            <% else %>
                <h2>Response to <%=h(@info_request.law_used_short)%> request '<%= request_link @info_request %>'</h2>
            <% end %>
        <% end %>
        
        <% if @incoming_message.nil? %>
            <%= render :partial => 'correspondence', :locals => { :info_request_event => @info_request.get_last_outgoing_event, :incoming_message => nil } %>
        <% else %>
            <%= render :partial => 'correspondence', :locals => { :info_request_event => nil, :incoming_message => @incoming_message } %>
        <% end %>
    <% end %>

    <%= render :partial => 'followup', :locals => { :incoming_message => @incoming_message } %>
</div>