diff options
Diffstat (limited to 'app/views/admin_request/edit_outgoing.html.erb')
-rw-r--r-- | app/views/admin_request/edit_outgoing.html.erb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/views/admin_request/edit_outgoing.html.erb b/app/views/admin_request/edit_outgoing.html.erb new file mode 100644 index 000000000..f749eac7b --- /dev/null +++ b/app/views/admin_request/edit_outgoing.html.erb @@ -0,0 +1,33 @@ +<h1>Edit outgoing message</h1> + +<%= error_messages_for 'outgoing_message' %> + +<%= form_tag '../update_outgoing/' + @outgoing_message.id.to_s do %> + + <p><label for="outgoing_message_body">Body of message</label><br/> + <%= text_area 'outgoing_message', 'body', :rows => 10, :cols => 60 %></p> + + <p><strong>Note:</strong> This is mainly to be used to excise information + that users inadvertently put in their messages, not realising it would be + public. It will already have been sent to the public authority, and their + reply may also include that information and be automatically published on + this site. You could also use this to edit a message before resending it, but + only the edited version will be shown on the public page if you do that.</p> + + <p><%= submit_tag 'Save', :accesskey => 's' %></p> +<% end %> + +<p> +<%= link_to 'Show', '../show/' + @outgoing_message.info_request.id.to_s %> | +<%= link_to 'List all', '../list' %> +</p> + +<%= form_tag '../destroy_outgoing' do %> + <div> + <%= hidden_field_tag 'outgoing_message_id', @outgoing_message.id %> + Warning, this is permanent! ---> + <%= submit_tag "Destroy outgoing message" %> + </div> +<% end %> + + |