statuses were added
[onlineproject.git] / online / app / views / admin / index.html.erb
blobd09c5f9006c61b56ee22db39ebad41dcf0ac26dd
1 <center>
3   <h3>Active Users</h3>
5   Total number of users: <%= @total_number %> users<br />
7   <% form_tag({:controller => "admin", :action => "index"}, :method => "get") do %>
8     <%= render :partial => "form" %>
9   <% end %>
10   
11    <br>
12     <br>
13     <b>Any status change  you send will effect the above <%= @total_number %> users (including those on other pages)</b>
15   <table>
16     <tr>
17       <% form_tag({:controller => "admin", :action => "status_change"}, :method => "post") do %>
18         <td>
19           <%= label_tag(:new_status, "Set status") %>
20         </td>
21         <td>
22           <%= text_area_tag(:new_status, nil,  :rows => 4, :cols => 45) %>
23         </td>
24         <td>
25           <%= submit_tag("Change Status") %>
26           <% if params[:gender] %>
27             <% params.each do |k, v| %>
28               <input type='hidden' value='<%= v %>' name='<%= k %>' />
29             <% end %>
30           <% end %>
31         </td>
32       <% end %>
33     </tr>
34   </table>
35 </center>