aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/_after_actions.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/request/_after_actions.html.erb')
-rw-r--r--app/views/request/_after_actions.html.erb57
1 files changed, 57 insertions, 0 deletions
diff --git a/app/views/request/_after_actions.html.erb b/app/views/request/_after_actions.html.erb
new file mode 100644
index 000000000..3d74cf42d
--- /dev/null
+++ b/app/views/request/_after_actions.html.erb
@@ -0,0 +1,57 @@
+<div id="after_actions">
+
+ <h2><%= _('Things to do with this request') %></h2>
+
+ <div id="anyone_actions">
+ <strong><%= _('Anyone:') %></strong>
+ <ul>
+ <% if @info_request.comments_allowed? %>
+ <li>
+ <%= raw(_('<a href="%s">Add an annotation</a> (to help the requester or others)') % [new_comment_url(:url_title => @info_request.url_title)]) %>
+ </li>
+ <% end %>
+ <% if @old_unclassified %>
+ <li>
+ <%= link_to _('Update the status of this request'), '#describe_state_form_1' %>
+ </li>
+ <% end %>
+ <% if @info_request.all_can_view? %>
+ <li>
+ <%= link_to _("Download a zip file of all correspondence"), download_entire_request_url(:url_title => @info_request.url_title) %>
+ </li>
+ <% end %>
+ </ul>
+ </div>
+ <% if ! @info_request.is_external? %>
+ <div id="owner_actions">
+ <strong><%= _('{{info_request_user_name}} only:',:info_request_user_name=>h(@info_request.user_name)) %></strong>
+ <ul>
+
+ <li>
+ <% if @last_response.nil? %>
+ <%= link_to _("Send a followup"), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "#followup" %>
+ <% else %>
+ <%= link_to _("Write a reply"), show_response_url(:id => @info_request.id, :incoming_message_id => @last_response.id) + "#followup" %>
+ <% end %>
+ </li>
+ <% if !@old_unclassified %>
+ <li>
+ <%= link_to _("Update the status of this request"), request_url(@info_request, :update_status => 1) %>
+ </li>
+ <% end %>
+ <li>
+ <%= link_to _("Request an internal review"), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>
+ </li>
+ </ul>
+ </div>
+ <% end %>
+
+ <div id="public_body_actions">
+ <strong><%= _('{{public_body_name}} only:',:public_body_name=>h(@info_request.public_body.name) ) %> </strong>
+ <ul>
+ <li>
+ <%= link_to _("Respond to request"), upload_response_url(:url_title => @info_request.url_title) %>
+ </li>
+ </ul>
+ </div>
+</div>