Skip to content

Commit

Permalink
Merge b869b3b into dc2bd78
Browse files Browse the repository at this point in the history
  • Loading branch information
matyikriszta committed Feb 26, 2023
2 parents dc2bd78 + b869b3b commit 37c07ee
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions app/views/admin/events/_invitation_management.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,19 @@
%br
<strong>#{@attending_students.count}</strong> are attending as students and <strong>#{@attending_coaches.count}</strong> as coaches.

= simple_form_for :invitation, url: admin_invitation_path, method: :put do |f|
.row.mb-4
.col-auto
= f.select :id,
@event.invitations.not_accepted.all.map { |u| [ "#{u.member.full_name} (#{u.role})", u.token] },
{ include_blank: true },
{ class: 'chosen-select', required: true,
data: { placeholder: t('messages.invitations.select_a_member_to_rsvp') } }
= f.hidden_field :event_id, value: @event.id
.row.mb-4
.col-auto
= f.button :button, 'Add', class: 'btn btn-sm btn-primary mb-0 mr-2'
%span{ "data-tooltip" => true, "aria-haspopup" => "true", class: "has-tip", title: t('admin.workshop.manage_rsvps.text') }
%i.fas.fa-info-circle
-# = simple_form_for :invitation, url: admin_invitation_path, method: :put do |f|
-# .row.mb-4
-# .col-auto
-# = f.select :id,
-# @event.invitations.not_accepted.all.map { |u| [ "#{u.member.full_name} (#{u.role})", u.token] },
-# { include_blank: true },
-# { class: 'chosen-select', required: true,
-# data: { placeholder: t('messages.invitations.select_a_member_to_rsvp') } }
-# = f.hidden_field :event_id, value: @event.id
-# .col-auto
-# = f.button :button, 'Add', class: 'btn btn-sm btn-primary mb-0 mr-2'
-# %span{ "data-tooltip" => true, "aria-haspopup" => "true", class: "has-tip", title: t('admin.workshop.manage_rsvps.text') }
-# %i.fas.fa-info-circle
.row
.col-12.col-md-6
Expand Down

0 comments on commit 37c07ee

Please sign in to comment.