-
-
Notifications
You must be signed in to change notification settings - Fork 199
Add support for dietary restrictions on member profiles #2312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 39 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
7978f79
add attributes for dietary restrictions to Member
mikej d2e9108
add dietary restrictions to member form
mikej bfd4d55
display dietary restrictions on workshop admin page
mikej 7ba07b7
add bottom margin to vertical collections
mikej dc25914
add input for specifying other dietary restrictions
mikej c3a0317
feat: add description to invitation emails
davidmillen50 78930b0
chore: remove some unrelated changes
davidmillen50 273ad56
chore: add margin to description text
davidmillen50 490f7a8
Show/hide "Other dietary restrictions"
mikej 10541c9
Add dietary restrictions method to MemberPresenter
mikej 5992ab9
update to use `class_names` helper
mikej ae2a8f3
rename variable for clarity
mikej c1a65bf
focus the "other dietary restrictions" input
mikej 72fad24
Allow long "other dietary restrictions" to wrap
mikej 42c7c77
add validation for other dietary restrictions
mikej 9d479db
replace change_table with add_column in migration
mikej 2c1f7fb
use MemberPresenter when showing user profile
mikej fbf734f
show dietary restrictions on current user profile
mikej edd366c
show dietary restrictions in admin member profiles
mikej 5591992
ask for dietary restrictions during signup
mikej 53781a9
Merge branch 'codebar:master' into dietary-restrictions
mikej 15c05a4
use humanize and upcase_first for checkbox labels
mikej 577c05e
Merge branch 'dietary-restrictions' of github.com:mikej/codebar-plann…
mikej d0b41b2
add comment to explain intention in member_params
mikej 1d1f8cb
add system tests for updating dietary restrictions
mikej 17f5020
add link to update dietary restrictions on invite
mikej 649a8f8
remove some unused i18n strings
mikej 1acabf6
Merge branch 'master' into dietary-restrictions
mikej 882c077
test to display of attendee dietary restrictions
mikej 18652fa
fix typo in expectation
mikej e006160
update interpolation argument to pass link
mikej 7815915
update to check for expected dietary restrictions
mikej 3bbffda
Merge branch 'master' into dietary-restrictions
mikej d1c9266
test setting dietary restrictions during signup
mikej 1d41738
minor edit to comment wording
mikej 9cbabc3
update skill badges on admin member profile
mikej 714f975
use text-break for dietary restriction badges
mikej 3fabf63
update to use hint and placeholder for Skills field
mikej eda5dcc
make displayed_dietary_restrictions nil-safe
mikej fff4f13
Revert "update to use hint and placeholder for Skills field"
mikej de1cfa9
Update migration to reflect current version of Rails
mikej 9215f51
Merge branch 'master' into dietary-restrictions
mikej File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
$(document).ready(function() { | ||
$('#member_dietary_restrictions_other').on('change', function () { | ||
const $otherDietaryRestrictions = $('#member_other_dietary_restrictions'); | ||
const $elementToToggle = $otherDietaryRestrictions.parent(); | ||
if ($elementToToggle.hasClass('d-none')) { | ||
$elementToToggle.removeClass('d-none').hide().slideDown(50); | ||
$otherDietaryRestrictions.focus(); | ||
} else { | ||
$elementToToggle.slideUp(50, () => $elementToToggle.addClass('d-none')); | ||
} | ||
}); | ||
}); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.