-
-
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.
Merge pull request #1734 from codebar/migrate-admin-workshops-page-wa…
…iting-list-section-to-bootstrap-5 Migrate admin workshop page waiting list section to Bootstrap 5 classes
- Loading branch information
Showing
1 changed file
with
20 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
- if waiting_list.list.any? | ||
.row | ||
.large-12.columns | ||
%strong Waiting List | ||
.row | ||
%table.attendances.large-12.columns | ||
.mt-4 | ||
%strong Waiting list | ||
|
||
%table.table.table-borderless.mt-3 | ||
%colgroup | ||
%col | ||
%col | ||
%col{style: 'width: 40%;'} | ||
%col | ||
%tbody | ||
- waiting_list.list.each do |list| | ||
- invitation = list.invitation | ||
%tr.row | ||
%td.small-1.columns | ||
= link_to admin_workshop_invitation_path(@workshop, invitation, attending: true), class: 'waiting_list', method: :put, remote: true, title: 'Add to attendees' do | ||
%tr | ||
%td | ||
= link_to admin_workshop_invitation_path(@workshop, invitation, attending: true), class: 'waiting_list border-0', method: :put, remote: true, title: 'Add to attendees' do | ||
%i.far.fa-plus-square | ||
%td.small-1.columns | ||
= link_to admin_workshop_invitation_path(@workshop, invitation, attending: false), class: 'waiting_list_remove', | ||
method: :put, remote: true, title: 'Remove from waitlist' do | ||
%td | ||
= link_to admin_workshop_invitation_path(@workshop, invitation, attending: false), class: 'waiting_list_remove border-0', method: :put, remote: true, title: 'Remove from waitlist' do | ||
%i.far.fa-minus-square | ||
%td.small-5.columns | ||
%td | ||
- if MemberPresenter.new(invitation.member).newbie? | ||
%span.has-tip{ 'data-tooltip': '', 'aria-haspopup': 'true', title: 'New attendee.' } | ||
%i.fas.fa-paw-alt | ||
= link_to admin_member_path(invitation.member) do | ||
%span{'data-bs-toggle': 'tooltip', 'data-bs-placement': 'bottom', title: 'New attendee'} | ||
%i.fas.fa-paw | ||
= link_to admin_member_path(invitation.member), class: 'border-0' do | ||
- if invitation.member.full_name.blank? | ||
= invitation.member.email | ||
- else | ||
= invitation.member.full_name | ||
%td.small-5.columns | ||
%td | ||
- if invitation.tutorial? | ||
%small Tutorial: #{invitation.tutorial} | ||
%br | ||
- if invitation.note? | ||
%small=invitation.note | ||
%br | ||
%small Note: #{invitation.note} |