aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin_request/edit.rhtml
blob: c343c2c49d460034270ddb10a8698bb99b5487f1 (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
<h1>Edit basic details of request</h1>

<%= error_messages_for 'info_request' %>

<% form_tag '../update/' + @info_request.id.to_s do %>

   <p><label for="info_request_title">Title</label> (warning: editing this will break URLs right now)<br/>
   <%= text_field 'info_request', 'title', :size => 50  %></p>

   <p><label for="info_request_prominence">Prominence</label> (whether is shown in lists of requests or not)<br/>
   <%= select( 'info_request', "prominence", { "normal" => "normal", "backpage" => "backpage"}) %>

   <p><label for="info_request_awaiting_description">Awaiting description</label><br/>
   <%= select('info_request', "awaiting_description", [["Yes",true],["No",false]]) %>
   </p>

   <p><label for="info_request_described_state">Described state</label><br/>
   <%= select( 'info_request', "described_state",
       [ 
        'waiting_response',
        'waiting_clarification', 
        'not_held',
        'rejected', 
        'successful', 
        'partially_successful',
        'requires_admin',
    ]) %>

    <%= submit_tag 'Save' %>

  <p><strong>Note:</strong> To edit the actual request body text, click edit
  next to the specific outgoing message.
  </p>

<% end %>

<p>
<%= link_to 'Show', '../show/' + @info_request.id.to_s %> |
<%= link_to 'List all', '../list' %>
</p>