updated to new autocomplete

This commit is contained in:
2026-03-19 10:20:50 -04:00
parent 9cb38cfbb1
commit 8ec60c8cd7
2 changed files with 4 additions and 4 deletions

View File

@@ -6,8 +6,8 @@
<div class="clearfix">
<%=t(:field_customer)%>:
<div class="input">
<%= f.autocomplete_field :customer, autocomplete_customer_name_customers_path, value: @customer.name, update_elements: {id: '#customer_id', value: '#issue_customer'}, required: true %>
<%= f.hidden_field :customer_id, id: "customer_id", value: @customer.id %>
<%= f.text_field :customer, class: "customer-name", autocomplete: "off", value: @customer.name, required: true,data: { autocomplete_url: "/customers/autocomplete" } %>
<%= f.hidden_field :customer_id, id: "issue_customer_id", value: @customer.id %>
</div>
</div>