diff options
Diffstat (limited to 'app/views/request/preview.html.erb')
-rw-r--r-- | app/views/request/preview.html.erb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/app/views/request/preview.html.erb b/app/views/request/preview.html.erb new file mode 100644 index 000000000..d5195bc0c --- /dev/null +++ b/app/views/request/preview.html.erb @@ -0,0 +1,48 @@ +<% @title = "Preview new " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %> + +<%= form_for(:info_request, @info_request, :html => { :id => 'preview_form' } ) do |f| %> + + <h1><%= _('3. Now check your request') %></h1> + <ul> + <li><%= _('Check you haven\'t included any <strong>personal information</strong>.') %></li> + <li><%= raw(_('Your name, request and any responses will appear in <strong>search engines</strong> + (<a href="%s">details</a>).') % [help_privacy_path+"#public_request"]) %> + </li> + </ul> + + <%= fields_for :outgoing_message do |o| %> + + <div class="correspondence" id="outgoing-0"> + <p class="preview_subject"> + <strong><%= _('To:') %></strong> <%=h @info_request.public_body.name %> + <br><strong><%= _('Subject:') %></strong> <%=h @info_request.email_subject_request %> + </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><%= raw(_('<strong>Privacy note:</strong> If you want to request private information about + yourself then <a href="%s">click here</a>.') % [help_requesting_path+"#data_protection"]) %> + + <p> + <%= f.hidden_field(:title) %> + <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %> + <%= f.hidden_field(:tag_string) %> + <%= hidden_field_tag(:submitted_new_request, 1) %> + <%= hidden_field_tag(:preview, 0 ) %> + <%= submit_tag _("Edit this request"), :name => 'reedit', :id => 'reedit_button' %> + <%= submit_tag _("Send request"), :name => 'submit', :id => 'submit_button' %> + </p> + + <% if !@info_request.tag_string.empty? %> + <p><strong><%= _('Tags:') %></strong> <%=h @info_request.tag_string %></p> + <% end %> + +<% end %> |