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