<%= form_for @vehicle do |f| %>
<%=t(:field_customer)%>:
<%= 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 %>
<%=t(:label_year)%>:
<%= f.number_field :year, :autocomplete => "off" %>
<%=t(:label_make)%>:
<%= f.text_field :make, :autocomplete => "off" %>
<%=t(:label_model)%>:
<%= f.text_field :model, :autocomplete => "off" %>
<%=t(:field_vin)%>:
<%= f.text_field :vin , :autofocus => true %>
<%=t(:field_notes)%>:
<%= f.text_area :notes, :cols => 60, :rows => 10, :no_label => true %>
<%= f.submit %>
<% end %>