X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fbitem%2Flist.rhtml;fp=app%2Fviews%2Fbitem%2Flist.rhtml;h=6b5bb14427e0347c8f3fc6eb4f3fc86d31137a1f;hb=6de5aedfe8ff0bc967b3690ae53d1f4205c10798;hp=0000000000000000000000000000000000000000;hpb=f4a463b2d77fccc4919aea19a54736db6e485688;p=cs356-p2-videostore.git diff --git a/app/views/bitem/list.rhtml b/app/views/bitem/list.rhtml new file mode 100644 index 0000000..6b5bb14 --- /dev/null +++ b/app/views/bitem/list.rhtml @@ -0,0 +1,31 @@ +

Listing bitems

+ + + + + + <% for column in Bitem.content_columns %> + + <% end %> + + +<% for bitem in @bitems %> + + + + <% for column in Bitem.content_columns %> + + <% end %> + + + + +<% end %> +
Customer NameMerchandise Name<%= column.human_name %>
<%=h bitem.customer.name %><%=h bitem.merchandise.name %><%=h bitem.send(column.name) %><%= link_to 'Show', :action => 'show', :id => bitem %><%= link_to 'Edit', :action => 'edit', :id => bitem %><%= link_to 'Destroy', { :action => 'destroy', :id => bitem }, :confirm => 'Are you sure?', :method => :post %>
+ +<%= link_to 'Previous page', { :page => @bitem_pages.current.previous } if @bitem_pages.current.previous %> +<%= link_to 'Next page', { :page => @bitem_pages.current.next } if @bitem_pages.current.next %> + +
+ +<%= link_to 'New bitem', :action => 'new' %>