mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Added customer count
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user