Many visual tweaks, suggested by Lan
[cs356-p2-videostore.git] / app / views / game_policy / list.rhtml
index 03b7b37..327c35d 100644 (file)
@@ -1,17 +1,17 @@
-<h1>Game Rental Policies</h1>
+<h1>Game Rental Pricing and Policies</h1>
 
 <table border="1">
   <tr>
-  <% for column in GamePolicy.content_columns %>
-    <th><%= column.human_name %></th>
-  <% end %>
+    <th>Description</th>
+    <th>Fee</th>
+    <th>Period</th>
   </tr>
   
 <% for game_policy in @game_policies %>
   <tr>
-  <% for column in GamePolicy.content_columns %>
-    <td><%=h game_policy.send(column.name) %></td>
-  <% end %>
+    <td><%=h game_policy.description %></td>
+    <td><%=h number_to_currency(game_policy.fee) %></td>
+    <td><%=h game_policy.period %> Days</td>
     <td><%= link_to 'View', :action => 'show', :id => game_policy %></td>
     <td><%= link_to 'Edit', :action => 'edit', :id => game_policy %></td>
   </tr>
@@ -21,6 +21,3 @@
 <%= link_to 'Previous page', { :page => @game_policy_pages.current.previous } if @game_policy_pages.current.previous %>
 <%= link_to 'Next page', { :page => @game_policy_pages.current.next } if @game_policy_pages.current.next %> 
 
-<br />
-
-<%= link_to 'New game_policy', :action => 'new' %>