327c35df9144e7bae32e88e8b538ae03ecc9799b
[cs356-p2-videostore.git] / app / views / game_policy / list.rhtml
1 <h1>Game Rental Pricing and Policies</h1>
2
3 <table border="1">
4   <tr>
5     <th>Description</th>
6     <th>Fee</th>
7     <th>Period</th>
8   </tr>
9   
10 <% for game_policy in @game_policies %>
11   <tr>
12     <td><%=h game_policy.description %></td>
13     <td><%=h number_to_currency(game_policy.fee) %></td>
14     <td><%=h game_policy.period %> Days</td>
15     <td><%= link_to 'View', :action => 'show', :id => game_policy %></td>
16     <td><%= link_to 'Edit', :action => 'edit', :id => game_policy %></td>
17   </tr>
18 <% end %>
19 </table>
20
21 <%= link_to 'Previous page', { :page => @game_policy_pages.current.previous } if @game_policy_pages.current.previous %>
22 <%= link_to 'Next page', { :page => @game_policy_pages.current.next } if @game_policy_pages.current.next %> 
23