X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;ds=inline;f=app%2Fviews%2Fcustomer%2Fsearchresults.rhtml;h=37d8b2e57cf1a42ca550228840e162330fadf4d5;hb=refs%2Ftags%2Fturned-in;hp=a6488cec700c46c7d747a116c8fe98ac79ac68dd;hpb=c9f35305eb2750116e7a073265ea6f1081226895;p=cs356-p2-videostore.git diff --git a/app/views/customer/searchresults.rhtml b/app/views/customer/searchresults.rhtml index a6488ce..37d8b2e 100644 --- a/app/views/customer/searchresults.rhtml +++ b/app/views/customer/searchresults.rhtml @@ -1,25 +1,25 @@ -
Sorry, there were no results
<% else %> -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?', :post => true %> | +<%= link_to 'Remove', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %> |