Update index.html.erb

This commit is contained in:
2016-08-01 15:42:42 -04:00
committed by GitHub
parent 134fb776f9
commit 01ea01fef6

View File

@@ -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>