aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/_other_describe_state.rhtml
blob: 3a80823c63833bfe819b1bf9e090093bd41bc5ab (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<% form_for(:incoming_message, @info_request, :url => describe_state_url(:id => @info_request.id)) do |f| %>
    <h2><%= _('Hi! We need your help. The person who made the following request
    hasn\'t told us whether or not it was successful. Would you mind taking
    a moment to read it and help us keep the place tidy for everyone?
    Thanks.') %></h2>

    <hr> <!------------------------------------------------>
    <h3><%= _('This request is still in progress:') %></h3>
    <% if @info_request.described_state != 'internal_review' %>
        <div>
            <%= radio_button "incoming_message", "described_state", "waiting_response", :id => 'waiting_response' + id_suffix %>
            <label for="waiting_response<%=id_suffix%>"><%= _('<strong>No response</strong> has been received
                <small>(maybe there\'s just an acknowledgement)</small>') %></label>
        </div>
    <% end %>
    <% if @info_request.described_state == 'internal_review' %>
        <div>
            <%= radio_button "incoming_message", "described_state", "internal_review", :id => 'internal_review' + id_suffix %>
            <label for="internal_review<%=id_suffix%>"><%= _('Still awaiting an <strong>internal review</strong>') %></label>
        </div>
    <% end %>

    <% if @info_request.described_state != 'internal_review' %>
        <div>
            <%= radio_button "incoming_message", "described_state", "waiting_clarification", :id => 'waiting_clarification' + id_suffix %>
            <label for="waiting_clarification<%=id_suffix%>"><%= _('<strong>Clarification</strong> has been requested') %></label>
        </div>
    <% end %>
    
    <div>
        <%= radio_button "incoming_message", "described_state", "gone_postal", :id => 'gone_postal' + id_suffix %>
        <label for="gone_postal<%=id_suffix%>"><%= _('A response will be sent <strong>by post</strong>') %></label>
    </div>

    <%= render :partial => 'general/custom_state_transitions_pending', :locals => {:id_suffix => id_suffix } %>

    <hr> <!------------------------------------------------>
    <h3><%= _('This particular request is finished:') %></h3>

    <% if @info_request.described_state == 'internal_review' %>
        <p><%= _('The <strong>review has finished</strong> and overall:') %></p>
    <% end %>

    <div>
        <%= radio_button "incoming_message", "described_state", "not_held", :id => 'not_held' + id_suffix %>
        <label for="not_held<%=id_suffix%>"><%= _('The authority do <strong>not have</strong> the information <small>(maybe they say who does)') %></small></label>
    </div>
    <div>
        <%= radio_button "incoming_message", "described_state", "partially_successful", :id => 'partially_successful' + id_suffix %>
        <label for="partially_successful<%=id_suffix%>"><%= _('<strong>Some of the information</strong> has been sent ') %></label>
    </div>
    <div>
        <%= radio_button "incoming_message", "described_state", "successful", :id => 'successful' + id_suffix %>
        <label for="successful<%=id_suffix%>"><%= _('<strong>All the information</strong> has been sent') %></label>
    </div>
    <div>
        <%= radio_button "incoming_message", "described_state", "rejected", :id => 'rejected' + id_suffix %>
        <label for="rejected<%=id_suffix%>"><%= _('The request has been <strong>refused</strong>') %></label>
    </div>
    
    <%= render :partial => 'general/custom_state_transitions_complete', :locals => {:id_suffix => id_suffix } %>

    <hr> <!------------------------------------------------>

    <div>
       <%= radio_button "incoming_message", "described_state", "error_message", :id => 'error_message' + id_suffix %>
        <label for="error_message<%=id_suffix%>">
        <%= _('An <strong>error message</strong> has been received') %>
        </label>
    </div>
    
    <hr>

    <p>
    <%= hidden_field_tag 'last_info_request_event_id', @last_info_request_event_id, :id => 'last_info_request_event_id' + id_suffix %>
    <%= submit_tag "Submit status" %>
    </p>
<% end %>