.row .col-sm-12 .box .box-header.dark-background .box-content = form_for @variation, :url => (@variation.new_record?) ? admin_product_variations_path(@product) : admin_product_variation_path(@product, @variation), html: { class: 'form form-horizontal'} do |f| -# = f.hidden_field :product_id, @product unless @variation.new_record? = form_group(@variation, :os) do %label.col-md-2.control-label{for: :os} Operating System .col-md-5 = f.collection_select :os, ProductVariation::OS_TYPES, lambda { |x| ProductVariation::OS_TYPES.index(x) }, :to_s, {}, class: 'form-control' = form_group(@variation, :ink_type) do %label.col-md-2.control-label{for: :ink_type} Ink Type .col-md-5 = f.collection_select :ink_type, ProductVariation::INK_TYPES, lambda { |x| ProductVariation::INK_TYPES.index(x) }, :to_s, {}, class: 'form-control' = form_group(@variation, :correction_method) do %label.col-md-2.control-label{for: :correction_method} Correction Method .col-md-5 = f.text_field :correction_method, class: 'form-control' = form_group(@variation, :driver_name) do %label.col-md-2.control-label{for: :driver_name} Driver Name .col-md-5 = f.text_field :driver_name, class: 'form-control' = form_group(@variation, :registration_seed) do %label.col-md-2.control-label{for: :registration_seed} Registration Seed .col-md-5 = f.text_field :registration_seed, class: 'form-control' = form_group(@variation, :external_id) do %label.col-md-2.control-label{for: :external_id} External ID .col-md-5 = f.text_field :external_id, class: 'form-control' .form-actions.form-actions-padding-sm .row .col-md-10.col-md-offset-2 = f.submit "Save", class: 'btn btn-primary'