X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcoitem%2Flist.rhtml;h=2b0db697b2cef6ae20b3891ab54d504e9237e646;hb=4c53d252acdb264a54a220d29bfb7962f968e891;hp=f6514cbe710939440e0ed281682df0c3520cf87c;hpb=d95e8f6a8205bf08d7de6d4f069acba9933cdba0;p=cs356-p2-videostore.git diff --git a/app/views/coitem/list.rhtml b/app/views/coitem/list.rhtml index f6514cb..2b0db69 100644 --- a/app/views/coitem/list.rhtml +++ b/app/views/coitem/list.rhtml @@ -1,26 +1,22 @@ -

Listing coitems

+

Listing Checked Out Items

- +
- - - - <% for column in Coitem.content_columns %> - - <% end %> + + + + + <% for coitem in @coitems %> - - - - <% for column in Coitem.content_columns %> - - <% end %> - - - + + + + + + <% end %>
CustomerRentableOverdue<%= column.human_name %>CustomerRentableOverdueDate Checked OutDue Date
<%=h coitem.customer.name %><%=h coitem.rentable.title %><%=h coitem.overdue? %><%=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.customer.name %><%=h coitem.rentable.title %><%=h tf_to_yesno(coitem.overdue?) %><%=h coitem.out_date %><%=h coitem.due_date %><%= link_to 'View', :action => 'show', :id => coitem %>
@@ -28,6 +24,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' %>