<commit_before>.modal#send-application
  .content
    h2
      = t '.title'
      a.close-modal(href='#')
    .item-block
      .applicant-details
        p.name = @user.full_name
        p.email = @user.email
        p.phone = @user.phone
    .hr

    = form_for @position_application, url: call_position_applications_path(format: :fragment), class: 'send-application' do |f|
      = f.hidden_field :user_id
      .item-row
        span.label = t '.apply_to'
        span.buttons
          - [:position_member, :position_deputy, :position_both].each do |position_value|
            label.btn
              = f.radio_button :position, position_value, checked: (position_value == :position_member)
              span = PositionApplication.human_attribute_name(position_value)
        = f.text_field :deputy_of, placeholder:  PositionApplication.human_attribute_name(:deputy_of), class: 'field half', style: 'display:none;'
      = f.text_area :personal_statement, placeholder: PositionApplication.human_attribute_name(:personal_statement), class: 'wide'
      .button-row
        a.cancel.close-modal.btn(href='#') = t 'modals.cancel'
        input.submit.js-submit.btn(type='submit' value="#{t 'modals.send'}")
<commit_msg>Fix preselection to be highlighted<commit_after>.modal#send-application
  .content
    h2
      = t '.title'
      a.close-modal(href='#')
    .item-block
      .applicant-details
        p.name = @user.full_name
        p.email = @user.email
        p.phone = @user.phone
    .hr

    = form_for @position_application, url: call_position_applications_path(format: :fragment), class: 'send-application' do |f|
      = f.hidden_field :user_id
      .item-row
        span.label = t '.apply_to'
        span.buttons
          - [:position_member, :position_deputy, :position_both].each do |position_value|
            - selected = position_value == :position_member
            label.btn(class="#{'checked' if selected}")
              = f.radio_button :position, position_value, checked: selected
              span = PositionApplication.human_attribute_name(position_value)
        = f.text_field :deputy_of, placeholder:  PositionApplication.human_attribute_name(:deputy_of), class: 'field half', style: 'display:none;'
      = f.text_area :personal_statement, placeholder: PositionApplication.human_attribute_name(:personal_statement), class: 'wide'
      .button-row
        a.cancel.close-modal.btn(href='#') = t 'modals.cancel'
        input.submit.js-submit.btn(type='submit' value="#{t 'modals.send'}")

{'fraction_non_alphanumeric': 0.12633241215949467, 'fraction_numerical': 0.0007895775759968417, 'mean_word_length': 3.035031847133758, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5822', 'n_tokens_mistral': 777, 'n_tokens_neox': 767, 'n_words': 142}