diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-27 10:34:47 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-27 10:34:47 +1100 |
commit | 835b51c1de0d49e652fe9c9a60f0974275de070c (patch) | |
tree | 0d64a841f28654a66556bcc0c0bb1153bae645a2 /app/views/admin_request/edit_outgoing.html.erb | |
parent | 77a284d6d088f7aa6d40810d46a39658fc6cf2cd (diff) |
Rename ALL THE TEMPLATES!!1!!!one!!1!!
.rhtml is deprecated in favour of .erb in Rails 3
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 %> + + |