diff --git a/app/views/customers/_search.html.erb b/app/views/customers/_search.html.erb index 98145bd..8fe829e 100644 --- a/app/views/customers/_search.html.erb +++ b/app/views/customers/_search.html.erb @@ -1,5 +1,5 @@ <%= form_tag(customers_path, method: "get", id: "customer-search-form") do %> - <%= text_field_tag :search, params[:search], placeholder: t(:label_search_customers), autocomplete: "off" %> + <%= text_field_tag :search, params[:search], class: "customer-name", autocomplete: "off", data: { autocomplete_url: "/customers/autocomplete" } %> <%= submit_tag t(:label_search) %> <% end %> <%= button_to t(:label_new_customer), new_customer_path, method: :get%>