X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=app%2Fviews%2Fcoitem%2Flist.rhtml;h=2b0db697b2cef6ae20b3891ab54d504e9237e646;hb=4c53d252acdb264a54a220d29bfb7962f968e891;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..2b0db69 100644 --- a/app/views/coitem/list.rhtml +++ b/app/views/coitem/list.rhtml @@ -1,24 +1,22 @@ -
Customer | -Rentable | - <% for column in Coitem.content_columns %> -<%= column.human_name %> | - <% end %> +Customer | +Rentable | +Overdue | +Date Checked Out | +Due Date | ||||
---|---|---|---|---|---|---|---|---|---|---|---|
<%=h coitem.customer.name %> | -<%=h coitem.rentable.title %> | - <% for column in Coitem.content_columns %> -<%=h coitem.send(column.name) %> | - <% end %> -<%= 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 %> |