<%= t('.general') %> <%= f.field_container :name do %> <%= f.label :name, class: 'required' %>
<%= f.text_field :name, class: 'fullwidth', required: true %> <% end %> <%= f.field_container :code do %> <%= f.label :code %> <%= f.text_field :code, :class => 'fullwidth', :label => false %> <% end %> <%= f.field_container :admin_name do %> <%= f.label :admin_name %> <%= f.text_field :admin_name, class: 'fullwidth', label: false %> <% end %>
<%= t('.address') %> <%= f.field_container :check_stock_on_transfer do %> <%= f.label :address1 %> <%= f.text_field :address1, class: 'fullwidth' %> <% end %> <%= f.field_container :address2 do %> <%= f.label :address2 %> <%= f.text_field :address2, class: 'fullwidth' %> <% end %> <%= f.field_container :city do %> <%= f.label :city %> <%= f.text_field :city, class: 'fullwidth' %> <% end %> <%= f.field_container :zipcode do %> <%= f.label :zipcode %> <%= f.text_field :zipcode, class: 'fullwidth' %> <% end %> <%= f.field_container :phone do %> <%= f.label :phone %> <%= f.phone_field :phone, class: 'fullwidth' %> <% end %> <%= f.field_container :country_id do %> <%= f.label :country_id %> <%= f.collection_select :country_id, available_countries(restrict_to_zone: nil), :id, :name, { include_blank: true }, { class: 'custom-select js-country_id fullwidth' } %> <% end %> <%= f.field_container :state do %> <% country = f.object.country %> <%= f.label :state_id %> <%= f.text_field :state_name, style: "display: none", class: 'fullwidth state_name js-state_name' %> <%= f.collection_select :state_id, country ? country.states.sort : [], :id, :name, { include_blank: true }, {class: 'custom-select fullwidth js-state_id', style: "display: none" } %> <% end %>
<%= t('.settings') %>
<%= f.field_container :active do %> <% end %> <%= f.field_container :default do %> <% end %> <%= f.field_container :backorderable_default do %> <% end %>
<%= f.field_container :propagate_all_variants do %> <% end %> <%= f.field_container :restock_inventory do %> <% end %> <%= f.field_container :fulfillable do %> <% end %> <%= f.field_container :check_stock_on_transfer do %> <% end %>