Fix spelling of 'receipt' in the Purchase Controller
[cs356-p2-videostore.git] / app / views / purchase / menu.rhtml
1 <h1>Purchase Menu</h1>
2
3 <h3>Customer Information</h3>
4 <ul>
5   <li>Customer ID: <%= @customer.id %></li>
6   <li>Customer Name: <%= @customer.name %></li>
7   <li>Customer Debt: <%= number_to_currency(@customer.debt) %></li>
8   <li>Price for this transaction: <%= number_to_currency(@total_price) %></li>
9   <li>Total Amount Owed: <%= number_to_currency(@customer.debt + @total_price) %></li>
10 </ul>
11
12 <h3>Items Purchased</h3>
13 <% if @items.empty? %>
14   None
15 <% else %>
16 <ul>
17 <% for item in @items %>
18   <li><%= item.title %></li>
19 <% end %>
20 </ul>
21 <% end %>
22
23 <h3>Actions</h3>
24 <ul>
25   <li><%=link_to 'Rent an Item', :action => 'rent' %></li>
26   <li><%=link_to 'Buy Merchandise', :action => 'buy_merch' %></li>
27   <br/>
28   <br/>
29   <br/>
30   <li><%=link_to 'End Purchase', :action => 'receipt' %></li>
31 </ul>
32