aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/followup_preview.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/request/followup_preview.html.erb')
-rw-r--r--app/views/request/followup_preview.html.erb56
1 files changed, 56 insertions, 0 deletions
diff --git a/app/views/request/followup_preview.html.erb b/app/views/request/followup_preview.html.erb
new file mode 100644
index 000000000..55afc0245
--- /dev/null
+++ b/app/views/request/followup_preview.html.erb
@@ -0,0 +1,56 @@
+<% @title = _("Preview follow up to '") + h(@info_request.public_body.name) + "'" %>
+
+<div id="followup">
+
+<%= form_for(@outgoing_message, :html => { :id => 'preview_form' }, :url => (@incoming_message.nil? ? show_response_no_followup_url(:id => @info_request.id) : show_response_url(:id => @info_request.id, :incoming_message_id => @incoming_message.id)) + "#followup" ) do |o| %>
+
+ <% if @internal_review %>
+ <h1><%= _('Now preview your message asking for an internal review') %></h1>
+ <% else %>
+ <h1><%= _('Now preview your follow up') %></h1>
+ <% end %>
+
+ <ul>
+ <li><%= _('Check you haven\'t included any <strong>personal information</strong>.') %></li>
+ <li><%= _('Your message will appear in <strong>search engines</strong>') %></li>
+ </ul>
+
+ <%= fields_for :outgoing_message do |o| %>
+
+ <div class="correspondence" id="outgoing-0">
+ <p class="preview_subject">
+ <strong><%= _('To:') %></strong> <%=h OutgoingMailer.name_for_followup(@info_request, @incoming_message) %>
+ <br><strong><%= _('Subject:') %></strong> <%=h OutgoingMailer.subject_for_followup(@info_request, @outgoing_message) %>
+ </p>
+
+ <div class="correspondence_text">
+ <p><%= @outgoing_message.get_body_for_html_display %></p>
+ <%= o.hidden_field(:body) %>
+ </div>
+
+ <p class="event_actions">
+ </p>
+ </div>
+ <% end %>
+
+ <p>
+ <%= _('<strong>Privacy warning:</strong> Your message, and any response
+ to it, will be displayed publicly on this website.') %>
+
+ <%= o.hidden_field(:what_doing) %>
+ </p>
+
+ <p>
+ <%= hidden_field_tag(:submitted_followup, 1) %>
+ <%= hidden_field_tag(:preview, 0 ) %>
+ <% if @internal_review_pass_on %>
+ <%= hidden_field_tag(:internal_review, 1 ) %>
+ <% end %>
+ <%= submit_tag _("Re-edit this message"), :name => 'reedit' %>
+ <%= submit_tag _("Send message"), :name => 'submit' %>
+ </p>
+
+<% end %>
+
+</div>
+