Add System Maintence pages
[cs356-p2-videostore.git] / app / views / coitem / overdue.rhtml
1 <h1>Listing Overdue Items</h1>
2
3 <table border="1">
4   <tr>
5     <th>Customer</th>
6     <th>Customer Phone #</th>
7     <th>Customer Email</th>
8     <th>Type</th>
9     <th>Title</th>
10     <th>Overdue</th>
11     <th>Date Checked Out</th>
12     <th>Due Date</th>
13   </tr>
14   
15 <% for coitem in @coitems %>
16   <tr>
17     <td><%=link_to coitem.customer.name, :controller => 'customer', :action => 'show', :id => coitem.customer.id %></td>
18     <td><%=h coitem.customer.phone %></td>
19     <td><%=h coitem.customer.email %></td>
20     <td><%=h coitem.rentable.type %></td>
21     <td><%=h coitem.rentable.title %></td>
22     <td><%=h tf_to_yesno(coitem.overdue?) %></td>
23     <td><%=h coitem.out_date %></td>
24     <td><%=h coitem.due_date %></td>
25     <td><%= link_to 'View', :action => 'show', :id => coitem %></td>
26   </tr>
27 <% end %>
28 </table>
29
30 <%= link_to 'Previous page', { :page => @coitem_pages.current.previous } if @coitem_pages.current.previous %>
31 <%= link_to 'Next page', { :page => @coitem_pages.current.next } if @coitem_pages.current.next %> 
32