Prettify the Purchase system
[cs356-p2-videostore.git] / app / views / purchase / menu.rhtml
index 6f5abd1..e2e01b5 100644 (file)
@@ -4,7 +4,9 @@
 <ul>
   <li>Customer ID: <%= @customer.id %></li>
   <li>Customer Name: <%= @customer.name %></li>
-  <li>Total Price: <%= @total_price %></li>
+  <li>Customer Debt: <%= number_to_currency(@customer.debt) %></li>
+  <li>Price for this transaction: <%= number_to_currency(@total_price) %></li>
+  <li>Total Amount Owed: <%= number_to_currency(@customer.debt + @total_price) %></li>
 </ul>
 
 <h3>Items Purchased</h3>
 </ul>
 <% end %>
 
+<h3>Actions</h3>
 <ul>
-  <li><%=link_to 'Rent an Item', :action => 'rent_begin' %></li>
-  <li><%=link_to 'Buy Merchandise', :action => 'buy_begin' %></li>
+  <li><%=link_to 'Rent an Item', :action => 'rent' %></li>
+  <li><%=link_to 'Buy Merchandise', :action => 'buy_merch' %></li>
+  <br/>
+  <br/>
+  <br/>
+  <li><%=link_to 'End Purchase', :action => 'success_end' %></li>
 </ul>
 
-<%=link_to 'End Purchase', :action => 'index' %>