X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcoitem%2Flist.rhtml;fp=app%2Fviews%2Fcoitem%2Flist.rhtml;h=44b9c2d008afed8320a9913b1897295cefe77c51;hb=4930bd87730032786d9cc7f3d5c1d7cd1f5091bc;hp=0000000000000000000000000000000000000000;hpb=7ab58ec3c4bc5d29a77db40341840ad7eac97be0;p=cs356-p2-videostore.git diff --git a/app/views/coitem/list.rhtml b/app/views/coitem/list.rhtml new file mode 100644 index 0000000..44b9c2d --- /dev/null +++ b/app/views/coitem/list.rhtml @@ -0,0 +1,31 @@ +

Listing coitems

+ + + + + + <% for column in Coitem.content_columns %> + + <% end %> + + +<% for coitem in @coitems %> + + + + <% for column in Coitem.content_columns %> + + <% end %> + + + + +<% end %> +
CustomerRentable<%= column.human_name %>
<%=h Customer.find(coitem.customer_id).name %><%=h Rentable.find(coitem.rentable_id).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 %>
+ +<%= 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' %>