blob: 50c64138fc5c458d311fad0998cab1ea8c6a191d (
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
|
<% @title = _("Preview follow up to '") + h(@info_request.public_body.name) + "'" %>
<div id="followup">
<% form_for(:outgoing_message, @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>
|