X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcustomer%2Flist.rhtml;h=e58a35de6ed82bfb62728569a60777866f92e79d;hb=f055d1d571511ca016711e39d12a62f5f5a0ea59;hp=fb29a6587e7e1c03adef1fb50210c93db8780461;hpb=f09365a8d79a8a4a756fdba732bb753829df0df2;p=cs356-p2-videostore.git diff --git a/app/views/customer/list.rhtml b/app/views/customer/list.rhtml index fb29a65..e58a35d 100644 --- a/app/views/customer/list.rhtml +++ b/app/views/customer/list.rhtml @@ -1,20 +1,22 @@ -

Listing customers

+

Listing Customers

- +
- <% for column in Customer.content_columns %> - - <% end %> + + + + <% for customer in @customers %> - <% for column in Customer.content_columns %> - - <% end %> - + + + + + - + <% end %>
<%= column.human_name %>Customer IDNamePhoneBalance
<%=h customer.send(column.name) %><%= link_to 'Show', :action => 'show', :id => customer %><%=h customer.id %><%=link_to customer.name.to_s, :action => 'show', :id => customer %><%=h customer.phone %><%=h number_to_currency(customer.debt) %><%= link_to "Checked Out Items", :controller => :coitem, :action => 'filterbycustomerid', :id => customer %> <%= link_to 'Edit', :action => 'edit', :id => customer %><%= link_to 'Destroy', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %><%= link_to 'Remove', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %>