X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcoitem%2Flist.rhtml;h=ac1057544d5ce5d0a4395aeb4b02b99eb2796d11;hb=refs%2Ftags%2Fturned-in;hp=e5063667b940c759486481a859806a78a3b3a3ad;hpb=be6d865110840adfc90f572a4cf14f62bc4cf31e;p=cs356-p2-videostore.git diff --git a/app/views/coitem/list.rhtml b/app/views/coitem/list.rhtml index e506366..ac10575 100644 --- a/app/views/coitem/list.rhtml +++ b/app/views/coitem/list.rhtml @@ -1,24 +1,29 @@ -

Listing coitems

+

Listing Checked Out Items

- +
- - - <% for column in Coitem.content_columns %> - - <% end %> + + + + + + + <% for coitem in @coitems %> - - - <% for column in Coitem.content_columns %> - - <% end %> - - - + + + + <% if coitem.rentable.type == Game %> + + <% else %> + + <% end %> + + + <% end %>
CustomerRentable<%= column.human_name %>Item IDCustomerTypeRentableOverdueDate Checked OutDue Date
<%=h coitem.customer.name %><%=h coitem.rentable.title %><%=h coitem.send(column.name) %><%= link_to 'Show', :action => 'show', :id => coitem %><%= link_to 'Edit', :action => 'edit', :id => coitem %><%= link_to 'Destroy', { :action => 'destroy', :id => coitem }, :confirm => 'Are you sure?', :method => :post %><%=h coitem.rentable.id.to_s %><%=h coitem.customer.name %><%=h coitem.rentable.class %><%=link_to coitem.rentable.title.to_s, :controller => 'game', :action => 'show', :id => coitem.rentable %><%=link_to coitem.rentable.title.to_s, :controller => 'video', :action => 'show', :id => coitem.rentable %><%=h tf_to_yesno(coitem.overdue?) %><%=h coitem.out_date %><%=link_to coitem.due_date.to_s, :action => 'edit', :id => coitem %>
@@ -26,6 +31,3 @@ <%= link_to 'Previous page', { :page => @coitem_pages.current.previous } if @coitem_pages.current.previous %> <%= link_to 'Next page', { :page => @coitem_pages.current.next } if @coitem_pages.current.next %> -
- -<%= link_to 'New coitem', :action => 'new' %>