<commit_before>- if @invitations.any?
  .row
    .col
      .panel
        %p
          <strong>#{@invitations.count}</strong> members have RSVP'd to this event.

  %div
    = simple_form_for :meeting_invitations, url: admin_meeting_invitations_path do |f|
      .row
        .col-6
          = f.select :member,
                      Member.all.map { |u| ["#{u.full_name}", u.id] },
                      { include_blank: true }, { class: 'chosen-select', required: true,
                      data: { placeholder: t('messages.invitations.select_a_member_to_rsvp') } }
          = f.input :meeting_id, as: :hidden, input_html: { value: @meeting.slug }

        .col-3
          %span{ 'data-tooltip': true, 'aria-haspopup': 'true', class: 'has-tip', title: t('admin.workshop.manage_rsvps.text') }
            %i.fas.fa-info
          = f.submit 'Add'

  .row.mt-4
    .col.attendances
      %h4 Participants

  .row
    - @invitations.each do |invitation|
      .col-5.attendee
        .row.mb-4
          .col-1
            - if (@meeting.date_and_time - 30.minutes).past?
              - if invitation.attended?
                = link_to '', admin_meeting_invitation_path(invitation, attendance_status: true, attended: false), class: 'far fa-check-square', method: :put
              - else
                = link_to '', admin_meeting_invitation_path(invitation, attendance_status: true, attended: true),
                class: 'fa fa-square-o verify-attendance',
                method: :put

            - else
              = link_to '', admin_meeting_invitation_path(invitation, attendance_status: false, attended: false), class: 'far fa-minus-square', method: :put

          .col-11
            = link_to admin_member_path(invitation.member) do
              = invitation.member.full_name<commit_msg>update panel and button<commit_after>- if @invitations.any?
  .row
    .col
      .card.bg-white.border-success
        .card-body
          %p.mb-0
            <strong>#{@invitations.count}</strong> members have RSVP'd to this event.

  %div.mt-4
    = simple_form_for :meeting_invitations, url: admin_meeting_invitations_path do |f|
      .row
        .col-6
          = f.select :member,
                      Member.all.map { |u| ["#{u.full_name}", u.id] },
                      { include_blank: true }, { class: 'chosen-select', required: true,
                      data: { placeholder: t('messages.invitations.select_a_member_to_rsvp') } }
          = f.input :meeting_id, as: :hidden, input_html: { value: @meeting.slug }

        .col-3
          %span{'data-bs-toggle': 'tooltip', 'data-bs-placement': 'bottom', title: t('admin.workshop.manage_rsvps.text')}
          = f.button :button, 'Add', class: 'btn btn-primary'

  .row
    .col.attendances
      %h4 Participants

  .row
    - @invitations.each do |invitation|
      .col-5.attendee
        .row.mb-4
          .col-1
            - if (@meeting.date_and_time - 30.minutes).past?
              - if invitation.attended?
                = link_to '', admin_meeting_invitation_path(invitation, attendance_status: true, attended: false), class: 'far fa-check-square', method: :put
              - else
                = link_to '', admin_meeting_invitation_path(invitation, attendance_status: true, attended: true),
                class: 'fa fa-square-o verify-attendance',
                method: :put

            - else
              = link_to '', admin_meeting_invitation_path(invitation, attendance_status: false, attended: false), class: 'far fa-minus-square', method: :put

          .col-11
            = link_to admin_member_path(invitation.member) do
              = invitation.member.full_name
{'fraction_non_alphanumeric': 0.12717391304347825, 'fraction_numerical': 0.00625, 'mean_word_length': 2.0246507806080527, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5392893', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1139, 'n_words': 233}