Added customer count

This commit is contained in:
2016-08-05 00:30:00 -04:00
committed by GitHub
parent 8418dfc0b5
commit d285344a61

View File

@@ -3,19 +3,17 @@
<%= form_tag(customers_path, :method => "get", id: "search-form") do %> <%= form_tag(customers_path, :method => "get", id: "search-form") do %>
<%= text_field_tag :search, params[:search], placeholder: "Search Customers" %> <%= text_field_tag :search, params[:search], placeholder: "Search Customers" %>
<%= submit_tag "Search" %> <%= submit_tag "Search" %>
<%= button_to "New Customer", new_customer_path, method: :get %>
<% end %> <% end %>
<br/> <br/>
<% if @customers.present? %> <% if @customers.present? %>
<br/>
<br/> <% @customers.each do |c| %>
<% @customers.each do |c| %> <div class="row">
<div class="row"> <div class="span6 columns">
<div class="span6 columns"> <%= link_to c, customer_path(c.id) %>
<%= link_to c, customer_path(c.id) %> </div>
</div> </div>
</div> <% end %>
<% end %>
<div class="actions"> <div class="actions">
<%= will_paginate @customers %> <%= will_paginate @customers %>
@@ -26,5 +24,5 @@
<% end %> <% end %>
<div> <div>
<b>Last Sync: </b> <%= Qbo.last_sync %> <%= Customer.count %> Customers - <b>Last Sync: </b> <%= Qbo.last_sync %>
</div> </div>