Fix broken tooltips for age/gender restrictions by replacing Bootstrap with Foundation classes #1525
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.
Fixed broken tooltips on disabled "Enroll" buttons when students violate age or gender restrictions during course registration.
Problem
The tooltips that should appear when hovering over disabled "Enroll" buttons were not working. The issue was that the code was using Bootstrap tooltip attributes (
data-toggle="popover",data-placement,data-content) while the application uses the Foundation CSS framework.Solution
Updated the
student_register_linktemplate tag incoderdojochi/templatetags/coderdojochi_extras.pyto use Foundation tooltip syntax instead of Bootstrap:Before (Bootstrap - Broken):
After (Foundation - Working):
Changes Made
data-toggle="popover"withdata-tooltipdata-placement="top"withdata-position="top"data-content="{message}"withtitle="{message}"has-tipclass to enable Foundation tooltip stylingTesting
Created a demonstration page that validates the fix works correctly for all tooltip scenarios. The tooltips now properly display restriction messages when hovering over disabled enrollment buttons.
Fixes #859.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.