.row .three.columns.alpha = f.label :name .nine.columns.omega = f.text_field :name, { placeholder: "eg. Professor Plum's Biodynamic Truffles", class: "fullwidth" } - if spree_current_user.admin? .row{ ng: { app: "admin.users" } } .three.columns.alpha =f.label :owner_id, 'Owner' .with-tip{'data-powertip' => "The primary user responsible for this enterprise."} %a What's this? .nine.columns.omega - owner_email = @enterprise.andand.owner.andand.email || "" = f.hidden_field :owner_id, class: "select2 fullwidth", 'user-select' => 'Enterprise.owner' .row .three.columns.alpha %label Primary Producer? .with-tip{'data-powertip' => "Select 'Producer' if you are a primary producer of food."} %a What's this? .five.columns.omega = f.check_box :is_primary_producer, 'ng-model' => 'Enterprise.is_primary_producer'   = f.label :is_primary_producer, 'I am a Producer' - if spree_current_user.admin? .row .alpha.eleven.columns .three.columns.alpha = f.label :sells, 'Sells' .with-tip{'data-powertip' => "None - enterprise does not sell to customers directly.
Own - Enterprise sells own products to customers.
Any - Enterprise can sell own or other enterprises products.
"} %a What's this? .two.columns = f.radio_button :sells, "none", 'ng-model' => 'Enterprise.sells'   = f.label :sells, "None", value: "none" .two.columns = f.radio_button :sells, "own", 'ng-model' => 'Enterprise.sells'   = f.label :sells, "Own", value: "own" .four.columns.omega = f.radio_button :sells, "any", 'ng-model' => 'Enterprise.sells'   = f.label :sells, "Any", value: "any" .row .alpha.three.columns = f.label :contact, 'Contact Name' .omega.nine.columns = f.text_field :contact, { placeholder: "eg. Gustav Plum"} .row .alpha.three.columns = f.label :email .omega.nine.columns = f.text_field :email, { placeholder: "eg. gustav@truffles.com", "ng-model" => "Enterprise.email" } .alert-box %i.icon-info-sign If we don't recognise this email address we'll send you a confirmation email to make sure it belongs to you. You'll need to use the link in the email we send to fully activate your new enterprise. %a.close{ href: "" } × .row .alpha.three.columns = f.label :phone .omega.nine.columns = f.text_field :phone, { placeholder: "eg. 98 7654 3210"} .row .alpha.three.columns = f.label :website .omega.nine.columns = f.text_field :website, { placeholder: "eg. www.truffles.com"} = f.fields_for :address do |af| .row .three.columns.alpha = af.label :address1 .nine.columns.omega = af.text_field :address1, { placeholder: "eg. 123 High Street"} .row .alpha.three.columns = af.label :address2 .nine.columns.omega = af.text_field :address2 .row .three.columns.alpha = af.label :city, 'Suburb' \/ = af.label :zipcode, 'Postcode' .four.columns = af.text_field :city, { placeholder: "eg. Northcote"} .five.columns.omega = af.text_field :zipcode, { placeholder: "eg. 3070"} .row .three.columns.alpha = af.label :state_id, 'State' \/ = af.label :country_id, 'Country' .four.columns = af.collection_select :state_id, af.object.country.states, :id, :name, {}, :class => "select2 fullwidth" .five.columns.omega = af.collection_select :country_id, available_countries, :id, :name, {}, :class => "select2 fullwidth" .row .twelve.columns.alpha   .row .twelve.columns.alpha = render partial: "spree/admin/shared/new_resource_links"