%= error_messages_for @quantity %>
<%= f.select :domain, domain_options, {required: true}, {autocomplete: 'off', data: {remote: true, url: parents_project_quantities_path(@project), params: "form=#{f.options[:html][:id]}"}} %>
<%= f.select :parent_id, parent_options(@quantity.domain), {required: true, label: :field_parent_quantity, include_blank: t('.null_parent')} %>
<%= f.text_field :name, size: 25, required: true %>
<%= f.text_field :description, style: "width: 100%;" %>
<%= f.fields_for :formula do |ff| %><%= ff.select :unit_id, unit_options, {label: ''} %>
<%= ff.check_box :zero_nil, {label: ''} %><%= t('.zero_nil') %>
<% end %>