diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin_request/edit.rhtml | 17 | ||||
-rw-r--r-- | app/views/layouts/admin.rhtml | 4 |
2 files changed, 19 insertions, 2 deletions
diff --git a/app/views/admin_request/edit.rhtml b/app/views/admin_request/edit.rhtml index c343c2c49..e6d40337c 100644 --- a/app/views/admin_request/edit.rhtml +++ b/app/views/admin_request/edit.rhtml @@ -25,8 +25,10 @@ 'partially_successful', 'requires_admin', ]) %> + </p> - <%= submit_tag 'Save' %> + <p><%= submit_tag 'Save changes' %> + </p> <p><strong>Note:</strong> To edit the actual request body text, click edit next to the specific outgoing message. @@ -34,6 +36,19 @@ <% end %> +<hr> + +<% form_tag '../fully_destroy/' + @info_request.id.to_s do %> + <p> + <strong>This is permanent and irreversible!</strong> <%= submit_tag 'Destory request entirely' %> + <br>Use it mainly if someone posts private information, e.g. made a Data Protection request. It + destroys all responses and tracks as well. + </p> + +<% end %> + +<hr> + <p> <%= link_to 'Show', '../show/' + @info_request.id.to_s %> | <%= link_to 'List all', '../list' %> diff --git a/app/views/layouts/admin.rhtml b/app/views/layouts/admin.rhtml index 51814b0d1..b9b362332 100644 --- a/app/views/layouts/admin.rhtml +++ b/app/views/layouts/admin.rhtml @@ -20,7 +20,9 @@ - you are <%= h @http_auth_user %> </p> - <p style="color: green"><%= flash[:notice] %></p> + <% if flash[:notice] %> + <p id="notice"><%= flash[:notice] %></p> + <% end %> <%= yield %> |