Lots of stuff, I got too tired to keep perfect revision history
[cs356-p2-videostore.git] / app / views / bonus_policy / list.rhtml
1 <h1>Listing bonus_policies</h1>
2
3 <table>
4   <tr>
5     <th>Number</th>
6     <th>Bonus Type</th>
7     <th>Days</th>
8     <th>Description</th>
9   </tr>
10   
11 <% for bonus_policy in @bonus_policies %>
12   <tr>
13     <td><%=h bonus_policy.number %></td>
14     <td><%=h bonus_policy.bonus_type %></td>
15     <td><%=h bonus_policy.days %></td>
16     <td><%=h bonus_policy.description %></td>
17     <td><%= link_to 'Show', :action => 'show', :id => bonus_policy %></td>
18     <td><%= link_to 'Edit', :action => 'edit', :id => bonus_policy %></td>
19     <td><%= link_to 'Destroy', { :action => 'destroy', :id => bonus_policy }, :confirm => 'Are you sure?', :method => :post %></td>
20   </tr>
21 <% end %>
22 </table>
23
24 <%= link_to 'Previous page', { :page => @bonus_policy_pages.current.previous } if @bonus_policy_pages.current.previous %>
25 <%= link_to 'Next page', { :page => @bonus_policy_pages.current.next } if @bonus_policy_pages.current.next %> 
26
27 <br />
28
29 <%= link_to 'New bonus_policy', :action => 'new' %>