mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update index.html.erb
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
<%= 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? %>
|
||||||
@@ -11,9 +12,7 @@
|
|||||||
<% @customers.each do |c| %>
|
<% @customers.each do |c| %>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span6 columns">
|
<div class="span6 columns">
|
||||||
<fieldset>
|
<%= link_to c, c_path %>
|
||||||
<%= link_to c %>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -25,9 +24,3 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<p>There are no customers containing the term(s) <%= params[:search] %>.</p>
|
<p>There are no customers containing the term(s) <%= params[:search] %>.</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<div class="actions">
|
|
||||||
<%= button_to "New", new_customer_path, method: :get %>
|
|
||||||
</div>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user