<commit_before>= simple_form_for [:admin, @sponsor], :html => {:multipart => true} do |f|
  .row
    .large-12.columns
      .row
        .large-6.columns
          = f.input :name
        .large-6.columns
          = f.input :website, as: :url

  .row
    .large-12.columns
      .large-6.columns
        = f.input :avatar, as: :file
        = f.hidden_field :image_cache
      .large-3.columns
        = f.input :seats, label: 'Student Spots'
      .large-3.columns
        = f.input :number_of_coaches, label: 'Coaches Spots'
  .row
    .large-6.columns
      .panel
        %strong Address
        = f.simple_fields_for :address do |a|
          = a.input :flat, label: 'Line 1'
          = a.input :street, label: 'Line 2'
          = a.input :postal_code
          = a.input :city
          = a.input :latitude
          = a.input :longitude
    .large-6.columns
      .panel
        %strong Contact Details
        %p Complete the fields below and/or select a member(s)
        = f.collection_select :contact_ids, Member.all, :id, :full_name,
          { selected: @sponsor.contacts.map(&:id) }, { multiple: true }
        = f.input :email
        = f.input :contact_first_name, label: 'Contact First Name'
        = f.input :contact_surname, label: 'Contact Surname'

  .row
    .large-6.columns
      - if params[:action] == 'new'
        = f.submit 'Create sponsor', class: 'button round'
      - elsif params[:action] == 'edit'
        = f.submit 'Save changes', class: 'button round'
<commit_msg>Adds accessibility information field to sponsor form<commit_after>= simple_form_for [:admin, @sponsor], :html => {:multipart => true} do |f|
  .row
    .large-12.columns
      .row
        .large-6.columns
          = f.input :name
        .large-6.columns
          = f.input :website, as: :url

  .row
    .large-12.columns
      .large-6.columns
        = f.input :avatar, as: :file
        = f.hidden_field :image_cache
      .large-3.columns
        = f.input :seats, label: 'Student Spots'
      .large-3.columns
        = f.input :number_of_coaches, label: 'Coaches Spots'

  .row
    .large-6.columns
      = f.input :accessibility_info, label: 'Accessibility information'

  .row
    .large-6.columns
      .panel
        %strong Address
        = f.simple_fields_for :address do |a|
          = a.input :flat, label: 'Line 1'
          = a.input :street, label: 'Line 2'
          = a.input :postal_code
          = a.input :city
          = a.input :latitude
          = a.input :longitude
    .large-6.columns
      .panel
        %strong Contact Details
        %p Complete the fields below and/or select a member(s)
        = f.collection_select :contact_ids, Member.all, :id, :full_name,
          { selected: @sponsor.contacts.map(&:id) }, { multiple: true }
        = f.input :email
        = f.input :contact_first_name, label: 'Contact First Name'
        = f.input :contact_surname, label: 'Contact Surname'

  .row
    .large-6.columns
      - if params[:action] == 'new'
        = f.submit 'Create sponsor', class: 'button round'
      - elsif params[:action] == 'edit'
        = f.submit 'Save changes', class: 'button round'

{'fraction_non_alphanumeric': 0.12955337345581247, 'fraction_numerical': 0.009185936015204309, 'mean_word_length': 1.990530303030303, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '118227', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1024, 'n_words': 261}