X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;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 @@ -

Search Results

+

Search Results for '<%= @query[0].to_s %>'

<% if @customers.empty? %>

Sorry, there were no results

<% else %> - +
- - <% for column in Customer.content_columns %> - - <% end %> + + + + <% for customer in @customers %> - - <% for column in Customer.content_columns %> - - <% end %> - + + + + + - + <% end %>
Customer ID<%= column.human_name %>Customer IDNamePhoneBalance
<%=h customer.id %><%=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?', :post => true %><%= link_to 'Remove', { :action => 'destroy', :id => customer }, :confirm => 'Are you sure?', :method => :post %>