diff options
Diffstat (limited to 'app/views/request/show_response.html.erb')
-rw-r--r-- | app/views/request/show_response.html.erb | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/app/views/request/show_response.html.erb b/app/views/request/show_response.html.erb new file mode 100644 index 000000000..ac1f04227 --- /dev/null +++ b/app/views/request/show_response.html.erb @@ -0,0 +1,81 @@ +<% if @incoming_message.nil? %> + <% @title = _("Send follow up to '{{title}}'", :title => h(@info_request.title)) %> +<% elsif @incoming_message.recently_arrived %> + <% @title = _("New response to '{{title}}'", :title => h(@info_request.title)) %> +<% else %> + <% @title = _("Response to '{{title}}'", :title => 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> + <%= render :partial => 'help/why_they_should_reply_by_email', :locals => {:help_page_url => help_privacy_path } %> + </dd> + + <dt> + <%= _('The authority only has a <strong>paper copy</strong> of the information.') %> + </dt> + <dd> + <%= raw(_('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)%> + <<%=link_to h(@postal_email), "mailto:" + @postal_email%>> + <%= _('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> + |