X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fcustomer%2Flist.rhtml;h=e58a35de6ed82bfb62728569a60777866f92e79d;hb=HEAD;hp=30ffdb604905fecff48f405156c4a5999bee702b;hpb=0afc41c8d27c42f33040955d6d25ad92f9fbd73d;p=cs356-p2-videostore.git diff --git a/app/views/customer/list.rhtml b/app/views/customer/list.rhtml index 30ffdb6..e58a35d 100644 --- a/app/views/customer/list.rhtml +++ b/app/views/customer/list.rhtml @@ -1,22 +1,22 @@ -
Customer ID | - <% for column in Customer.content_columns %> -<%= column.human_name %> | - <% end %> +Customer ID | +Name | +Phone | +Balance | |||||
---|---|---|---|---|---|---|---|---|---|---|
<%=h customer.id %> | - <% for column in Customer.content_columns %> -<%=h customer.send(column.name) %> | - <% end %> -<%= 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 %> |