X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=app%2Fviews%2Fcoitem%2Flist.rhtml;h=92113ad19d6f382d33e72d764bb5903bf790b1b3;hb=e4597521e3a7365f86731f7d69643cb1067acb5e;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..92113ad 100644 --- a/app/views/coitem/list.rhtml +++ b/app/views/coitem/list.rhtml @@ -1,26 +1,29 @@ -
Customer | -Rentable | -Overdue | - <% for column in Coitem.content_columns %> -<%= column.human_name %> | - <% end %> +Item ID | +Customer | +Type | +Rentable | +Overdue | +Date Checked Out | +Due Date | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<%=h coitem.customer.name %> | -<%=h coitem.rentable.title %> | -<%=h coitem.overdue? %> | - <% 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.rentable.id.to_s %> | +<%=h coitem.customer.name %> | +<%=h coitem.rentable.class %> | + <% if coitem.rentable.type == Game %> +<%=link_to coitem.rentable.title.to_s, :controller => 'game', :action => 'show', :id => coitem.rentable %> | + <% else %> +<%=link_to coitem.rentable.title.to_s, :controller => 'video', :action => 'show', :id => coitem.rentable %> | + <% end %> +<%=h tf_to_yesno(coitem.overdue?) %> | +<%=h coitem.out_date %> | +<%=h coitem.due_date %> |