mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
29 lines
698 B
Plaintext
29 lines
698 B
Plaintext
<h1>Customers</h1>
|
|
<br/>
|
|
<%= form_tag(customers_path, :method => "get", id: "search-form") do %>
|
|
<%= text_field_tag :search, params[:search], placeholder: "Search Customers" %>
|
|
<%= submit_tag "Search" %>
|
|
<% end %>
|
|
<br/>
|
|
<% if @customers.present? %>
|
|
<br/>
|
|
<% @customers.each do |c| %>
|
|
<div class="row">
|
|
<div class="span6 columns">
|
|
<%= link_to c, customer_path(c.id) %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="actions">
|
|
<%= will_paginate @customers %>
|
|
</div>
|
|
|
|
<% else %>
|
|
<p>There are no customers containing the term(s) <%= params[:search] %>.</p>
|
|
<% end %>
|
|
|
|
<div>
|
|
<%= Customer.count %> Customers - <b>Last Sync: </b> <%= Qbo.last_sync if Qbo.exists? %>
|
|
</div>
|