-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 37 additions & 38 deletions
75
app/views/admin/meetings/_invitation_management.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,42 @@ | ||
- if @invitations.any? | ||
.row.mb-4 | ||
.col | ||
.card.bg-white.border-success | ||
.card-body | ||
%p.mb-0 | ||
<strong>#{@invitations.count}</strong> members have RSVP'd to this event. | ||
|
||
= 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.hidden_field :meeting_id, value: @meeting.slug | ||
.col | ||
= f.button :button, 'Add', class: 'btn btn-sm btn-primary mb-0 mr-2' | ||
%span{'data-bs-toggle': 'tooltip', 'data-bs-placement': 'bottom', title: t('admin.workshop.manage_rsvps.text')} | ||
%i.fas.fa-info-circle | ||
.row.mb-4 | ||
.col | ||
.card.bg-white.border-success | ||
.card-body | ||
%p.mb-0 | ||
<strong>#{@invitations.count}</strong> members have RSVP'd to this event. | ||
|
||
.row.mt-4 | ||
.col-12.attendances | ||
%h4 Participants | ||
= 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.hidden_field :meeting_id, value: @meeting.slug | ||
.col | ||
= f.button :button, 'Add', class: 'btn btn-sm btn-primary mb-0 mr-2' | ||
%span{'data-bs-toggle': 'tooltip', 'data-bs-placement': 'bottom', title: t('admin.workshop.manage_rsvps.text')} | ||
%i.fas.fa-info-circle | ||
|
||
- @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 | ||
.row.mt-4 | ||
.col-12.attendances | ||
%h4 Participants | ||
|
||
- @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: false, attended: false), class: 'far fa-minus-square', method: :put | ||
= 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 | ||
.col-11 | ||
= link_to admin_member_path(invitation.member) do | ||
= invitation.member.full_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.container-fluid.pt-3 | ||
.container.py-4.py-lg-5 | ||
.row.mb-4 | ||
.col | ||
%h1 Edit Monthly | ||
|
||
.row | ||
.col.col-lg-10 | ||
.col.col-md-10.col-lg-8 | ||
= render partial: 'form' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.container-fluid.pt-3 | ||
.container.py-4.py-lg-5 | ||
.row.mb-4 | ||
.col | ||
%h1 New Monthly | ||
|
||
.row | ||
.col.col-lg-10 | ||
.col.col-md-10.col-lg-8 | ||
= render partial: 'form' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters