<commit_before>- content_for :head do
  = render 'shared/cms_elrte_head'

.fullwidth_inputs
  .row
    .alpha.six.columns
      .two.columns.alpha
        = f.label :name
      .four.columns.omega
        = f.text_field :name
  .row
    .alpha.two.columns &nbsp;
    .omega.ten.columns
      .alpha.two.columns
        = f.check_box :is_primary_producer
        = f.label :is_primary_producer, 'Producer'
      .omega.two.columns
        = f.check_box :is_distributor
        = f.label :is_distributor, 'Hub'
      .omega.two.columns
        %span.with-tip{'data-powertip' => "Select 'Producer' if you are a primary producer of food. And select 'Hub' if you are selling to end customers. You can do both."}
          %a Tell me more?
  = f.fields_for :address do |af|
    %fieldset
      %legend Address
      .row
        .alpha.six.columns
          .alpha.two.columns
            = af.label :address1
          .omega.four.columns
            = af.text_field :address1
        .omega.six.columns
          .alpha.two.columns
            = af.label :address2
          .omega.four.columns
            = af.text_field :address2
      .row
        .six.columns.alpha
          .alpha.two.columns
            = af.label :city, 'Suburb'
          .omega.four.columns
            = af.text_field :city
        .six.columns.omega
          .alpha.two.columns
            = af.label :zipcode, 'Postcode'
          .omega.four.columns
            = af.text_field :zipcode
      .row
        .alpha.two.columns &nbsp;
        .omega.three.columns
          = af.collection_select(:state_id, af.object.country.states, :id, :name)
      .row
        .alpha.two.columns &nbsp;
        .omega.three.columns
          = af.collection_select(:country_id, available_countries, :id, :name)
    .row
      .alpha.six.columns
        %fieldset
          %legend Contact Details
          .row
            .alpha.two.columns
              = f.label :contact, 'Name'
            .omega.four.columns
              = f.text_field :contact
          .row
            .alpha.two.columns
              = f.label :email
            .omega.four.columns
              = f.text_field :email
          .row
            .alpha.two.columns
              = f.label :phone
            .omega.four.columns
              = f.text_field :phone
      .omega.six.columns
        %fieldset
          %legend Enterprise Details
          .row
            .alpha.two.columns
              = f.label :abn, 'ABN'
              / TODO: figure out how to work with one field for both
              / ABN has 11 digits
              / ACN has 9 digits
            .omega.four.columns
              = f.text_field :abn
          .row
            .alpha.two.columns
              = f.label :acn, 'ACN'
            .omega.four.columns
              = f.text_field :acn
          .row
            .alpha.two.columns
              = f.label :website
            .omega.four.columns
              = f.text_field :website
          /.row
          /  .alpha.two.columns
          /    = f.label :twitter, 'Facebook'
          /    / TODO: facebook data field
          /  .omega.four.columns
          /    = f.text_field :twitter
          .row
            .alpha.two.columns
              = f.label :twitter
            .omega.four.columns
              = f.text_field :twitter
  %fieldset
    %legend About Us
    .row
      .alpha.two.columns
        = f.label :description, 'Short Description'
      .omega.ten.columns
        = f.text_field :description, placeholder: 'Just one or two sentences'
    .row
      .alpha.two.columns
        = f.label :long_description, 'About Us'
        %br
        Tell us about yourself. This information appears on your public profile (under "About Us")
      .omega.eight.columns
        = f.text_area :long_description, class: 'rich_text', placeholder: 'Tell us about yourself. This information appears on your public profile (under "About Us")'
    .row
      .alpha.two.columns
        = f.label :distributor_info, 'How does it work?'
        %br
        Hub only: Explain your distribution offer/s - this is more detailed information that the user can access by clicking on "How does it work?"
      .omega.eight.columns
        = f.text_area :distributor_info, class: 'rich_text', placeholder: 'Hub only: Explain your distribution offer/s - this is more detailed information that the user can access by clicking on "How does it work?"'
        / TODO: how to use placeholder with richt text?
        / TODO: editor breaks scrolling with arrow keys
    .row
      .alpha.two.columns
        = f.label :logo
      .omega.four.columns
        = image_tag @object.logo.url
        = f.file_field :logo
      .omega.two.columns
        = f.label :promo_image, class: 'with-tip', 'data-powertip' => 'This image is displayed in "About Us"'
      .omega.four.columns
        = image_tag @object.promo_image.url
        = f.file_field :pro_image
    
<commit_msg>added old input fields, enterprises test passing<commit_after>- content_for :head do
  = render 'shared/cms_elrte_head'

.fullwidth_inputs
  .row
    .alpha.six.columns
      .two.columns.alpha
        = f.label :name
      .four.columns.omega
        = f.text_field :name
    .omega.six.columns
      .two.columns.alpha
        = f.label :group_ids, 'Groups'
      .four.columns.omega
        = f.collection_select :group_ids, EnterpriseGroup.all, :id, :name, {}, {class: "select2 fullwidth", multiple: true}
  .row
    .alpha.two.columns &nbsp;
    .omega.ten.columns
      .alpha.two.columns
        = f.check_box :is_primary_producer
        = f.label :is_primary_producer, 'Producer'
      .omega.two.columns
        = f.check_box :is_distributor
        = f.label :is_distributor, 'Hub'
      .omega.two.columns
        %span.with-tip{'data-powertip' => "Select 'Producer' if you are a primary producer of food. And select 'Hub' if you are selling to end customers. You can do both."}
          %a Tell me more?
  = f.fields_for :address do |af|
    %fieldset
      %legend Address
      .row
        .alpha.six.columns
          .alpha.two.columns
            = af.label :address1
          .omega.four.columns
            = af.text_field :address1
        .omega.six.columns
          .alpha.two.columns
            = af.label :address2
          .omega.four.columns
            = af.text_field :address2
      .row
        .six.columns.alpha
          .alpha.two.columns
            = af.label :city, 'Suburb'
          .omega.four.columns
            = af.text_field :city
        .six.columns.omega
          .alpha.two.columns
            = af.label :zipcode, 'Postcode'
          .omega.four.columns
            = af.text_field :zipcode
      .row
        .alpha.two.columns &nbsp;
        .omega.three.columns
          = af.collection_select(:state_id, af.object.country.states, :id, :name)
      .row
        .alpha.two.columns &nbsp;
        .omega.three.columns
          = af.collection_select(:country_id, available_countries, :id, :name)
    .row
      .alpha.six.columns
        %fieldset
          %legend Contact Details
          .row
            .alpha.two.columns
              = f.label :contact, 'Name'
            .omega.four.columns
              = f.text_field :contact
          .row
            .alpha.two.columns
              = f.label :email
            .omega.four.columns
              = f.text_field :email
          .row
            .alpha.two.columns
              = f.label :phone
            .omega.four.columns
              = f.text_field :phone
      .omega.six.columns
        %fieldset
          %legend Enterprise Details
          .row
            .alpha.two.columns
              = f.label :abn, 'ABN'
              / TODO: figure out how to work with one field for both
              / ABN has 11 digits
              / ACN has 9 digits
            .omega.four.columns
              = f.text_field :abn
          .row
            .alpha.two.columns
              = f.label :acn, 'ACN'
            .omega.four.columns
              = f.text_field :acn
          .row
            .alpha.two.columns
              = f.label :website
            .omega.four.columns
              = f.text_field :website
          /.row
          /  .alpha.two.columns
          /    = f.label :twitter, 'Facebook'
          /    / TODO: facebook data field
          /  .omega.four.columns
          /    = f.text_field :twitter
          .row
            .alpha.two.columns
              = f.label :twitter
            .omega.four.columns
              = f.text_field :twitter
  %fieldset
    %legend About Us
    .row
      .alpha.two.columns
        = f.label :description, 'Short Description'
      .omega.ten.columns
        = f.text_field :description, placeholder: 'Just one or two sentences'
    .row
      .alpha.two.columns
        = f.label :long_description, 'About Us'
        %br
        Tell us about yourself. This information appears on your public profile (under "About Us")
      .omega.eight.columns
        = f.text_area :long_description, class: 'rich_text', placeholder: 'Tell us about yourself. This information appears on your public profile (under "About Us")'
    .row
      .alpha.two.columns
        = f.label :distributor_info, 'How does it work?'
        %br
        Hub only: Explain your distribution offer/s - this is more detailed information that the user can access by clicking on "How does it work?"
      .omega.eight.columns
        = f.text_area :distributor_info, class: 'rich_text', placeholder: 'Hub only: Explain your distribution offer/s - this is more detailed information that the user can access by clicking on "How does it work?"'
        / TODO: how to use placeholder with richt text?
        / TODO: editor breaks scrolling with arrow keys
    .row
      .alpha.two.columns
        = f.label :logo
      .omega.four.columns
        = image_tag @object.logo.url
        = f.file_field :logo
      .omega.two.columns
        = f.label :promo_image, class: 'with-tip', 'data-powertip' => 'This image is displayed in "About Us"'
      .omega.four.columns
        = image_tag @object.promo_image.url
        = f.file_field :pro_image
    
  %fieldset
    %legend Pickup details
    .row
    .alpha.six.columns
      .alpha.two.columns
        = f.label :next_collection_at, 'Next collection date/time'
      .omega.four.columns
        = f.text_field :next_collection_at
    .omega.six.columns
      .alpha.two.columns
        = f.label :pickup_times, 'Regular pickup times'
      .omega.four.columns
        = f.text_field :pickup_times



{'fraction_non_alphanumeric': 0.09915791465606964, 'fraction_numerical': 0.001419244961680386, 'mean_word_length': 1.6053734286418535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3006451', 'n_tokens_mistral': 3122, 'n_tokens_neox': 3071, 'n_words': 793}