<commit_before>.row
  = simple_form_for(@org,
  :as => :organization,
  :url => @org.new_record? ? organizations_path : organization_path,
  :method => @org.new_record? ? 'post' : 'put',
  :html => {:class => 'form-vertical org_form'},
  :wrapper => :vertical_form,
  :wrapper_mappings => {:check_boxes => :vertical_radio_and_checkboxes,
    :radio_buttons => :vertical_radio_and_checkboxes,
    :file => :vertical_file_input,
    :boolean => :vertical_boolean}) do |f|
    .col-md-6
      = dialog_tag('Corporate', {:icon => 'fa fa-book', :class => "header-part"}) do
        = f.input :name, :required => true
        = f.input :short_name, :required => true, :label => "Short Name"
        = f.input :external_id, :label => "External ID"
    .col-md-6
      = dialog_tag('Contact', {:icon => 'fa fa-book', :class => "header-part"}) do
        = f.input :phone, :required => true, :as => :tel
        = f.input :fax, :as => :tel
        = f.input :url, :required => true, :as => :url
        = f.input :address1, :required => true, :label => "Address 1"
        = f.input :address2, :label => "Address 2"
        .row
          .col-sm-6
            = f.input :city, :required => true
          .col-sm-3
            = f.input :state, :required => true, :as => :select, :collection => Country['US'].states
          .col-sm-3
            = f.input :zip, :required => true

    .col-md-12
      = f.button :submit, :class => 'btn btn-primary'
      = submit_tag 'Cancel', :name => 'cancel', :class=>"btn btn-warning"

:javascript

  // jquery validations
  $('.org_form').validate({
    ignore: [], //validate hidden fields
    submitHandler: function(form) {
      form.submit();
    }
  });
<commit_msg>update core org form to match transit org form when appropriate<commit_after>.row
  = simple_form_for(@org,
  :as => :organization,
  :url => @org.new_record? ? organizations_path : organization_path,
  :method => @org.new_record? ? 'post' : 'put',
  :html => {:class => 'form-vertical org_form'},
  :wrapper => :vertical_form,
  :wrapper_mappings => {:check_boxes => :vertical_radio_and_checkboxes,
    :radio_buttons => :vertical_radio_and_checkboxes,
    :file => :vertical_file_input,
    :boolean => :vertical_boolean}) do |f|
    - if @org.new_record? # for now only allow organization type of planning partern
      = f.input :organization_type_id, :as => :hidden
      = f.input :customer_id, :as => :hidden, :input_html => {:value => Customer.first.id}
    .col-md-6
      = dialog_tag('Corporate', {:icon => 'fa fa-book', :class => "header-part"}) do
        = f.input :name, :required => true
        = f.input :short_name, :required => true, :label => "Short Name"
        = f.input :external_id, :label => "External ID"
    .col-md-6
      = dialog_tag('Contact', {:icon => 'fa fa-book', :class => "header-part"}) do
        = f.input :phone, :required => true, :as => :tel
        = f.input :fax, :as => :tel
        = f.input :url, :required => true, :as => :url
        = f.input :address1, :required => true, :label => "Address 1"
        = f.input :address2, :label => "Address 2"
        .row
          .col-sm-6
            = f.input :city, :required => true
          .col-sm-3
            = f.input :state, :required => true, :as => :select, :collection => Country['US'].states
          .col-sm-3
            = f.input :zip, :required => true
        - if User.new.respond_to? :email_in_org_domain_list
          = f.input :allowed_email_domains, :label => 'Allowed Email Domains', :placeholder => 'To enter more than one domain, separate with |'

    .col-md-12
      = f.button :submit, :class => 'btn btn-primary'
      = submit_tag 'Cancel', :name => 'cancel', :class=>"btn btn-warning"

:javascript

  // jquery validations
  $('.org_form').validate({
    ignore: [], //validate hidden fields
    submitHandler: function(form) {
      form.submit();
    }
  });

{'fraction_non_alphanumeric': 0.17505133470225873, 'fraction_numerical': 0.005646817248459959, 'mean_word_length': 2.7399232245681384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6187443', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1265, 'n_words': 314}