-
Notifications
You must be signed in to change notification settings - Fork 3
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
7 changed files
with
99 additions
and
66 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
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 |
---|---|---|
|
@@ -320,7 +320,7 @@ def total_tickets | |
end | ||
|
||
def guest_count | ||
total_tickets - 1 | ||
total_tickets | ||
end | ||
|
||
def guests_specified | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
%link{:href => "/icons/android-chrome-192x192.png", :rel => "shortcut icon", :type => "image/png"}/ | ||
%link{:href => "https://fonts.googleapis.com", :rel => "preconnect"}/ | ||
%link{:href => "https://fonts.googleapis.com/css2?family=Dosis:[email protected]&family=Oswald:[email protected]&display=swap", :rel => "stylesheet"}/ | ||
%script{src: "https://js.stripe.com/v3/", crossorigin: "anonymous"} | ||
%script{src: "https://js.stripe.com/v3/", crossorigin: "anonymous", async: true} | ||
|
||
%title | ||
- if content_for?(:title) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,11 +57,11 @@ | |
%li John Digweed <[email protected]> | ||
- total_guests = @ticket_request.guest_count | ||
- adult_guests = @ticket_request.adults - 1 | ||
- adult_guests = @ticket_request.adults | ||
- adult_guests.times do |guest_id| | ||
- next if @ticket_request.guests[guest_id] == "#{@ticket_request.user.name} <#{@ticket_request.user.email}>" | ||
- default_value = guest_id == 0 ? @ticket_request.user.name_and_email : '' | ||
= f.label "Adult Guest #{guest_id + 1}" | ||
= f.text_field :guest_list, readonly: list_finalized, multiple: true, value: Array(@ticket_request.guests[0...adult_guests])[guest_id], style: 'width: 80%' | ||
= f.text_field :guest_list, readonly: list_finalized, multiple: true, value: Array(@ticket_request.guests[0...adult_guests])[guest_id] || default_value, style: 'width: 80%' | ||
|
||
- if @ticket_request.kids.positive? | ||
.col-lg-6.col-xl-6.col-md-12.col-sm-12 | ||
|
@@ -74,7 +74,7 @@ | |
- kid_guests = @ticket_request.kids | ||
- kid_guests.times do |guest_id| | ||
= f.label "Kid Guest #{guest_id + 1}" | ||
= f.text_field :guest_list, readonly: list_finalized, multiple: true, value: Array(@ticket_request.guests[(adult_guests)...total_guests])[guest_id], style: 'width: 80%' | ||
= f.text_field :guest_list, readonly: list_finalized, multiple: true, value: Array(@ticket_request.guests[(adult_guests)..total_guests])[guest_id], style: 'width: 80%' | ||
|
||
%hr | ||
%h4 How are you contributing to the event? | ||
|
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