aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/_after_actions.rhtml
blob: 3d74cf42da38b462a84c792f1cf74ab015017f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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>