-
Notifications
You must be signed in to change notification settings - Fork 24
Add a CE hours detail section to the registration ticket #1710
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 all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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 |
|---|---|---|
|
|
@@ -109,6 +109,21 @@ | |
| <% end %> | ||
| <% end %> | ||
|
|
||
| <!-- CE hours (continuing education requirements, payment, sign-in rules) --> | ||
| <% if event_registration.event.ce_hours_details.present? %> | ||
| <%= link_to ce_hours_event_path(event_registration.event, reg: event_registration.slug), | ||
| class: "flex items-center gap-3 rounded-xl border-2 border-indigo-300 bg-indigo-50 px-4 py-3 hover:bg-indigo-100 transition-colors" do %> | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 From Claude: Intentionally indigo + graduation-cap to distinguish this call-out from the amber "Before you attend" one directly above, so two stacked call-outs on a ticket read as different things. |
||
| <i class="fa-solid fa-graduation-cap text-indigo-500 text-xl shrink-0"></i> | ||
|
|
||
| <div class="flex-1 min-w-0 text-left"> | ||
| <p class="font-semibold text-indigo-900"><%= event_registration.event.ce_hours_details_label %></p> | ||
| <p class="text-sm text-indigo-700">Continuing education hours — requirements & next steps</p> | ||
| </div> | ||
|
|
||
| <i class="fa-solid fa-arrow-right text-indigo-500 shrink-0"></i> | ||
| <% end %> | ||
| <% end %> | ||
|
|
||
| <!-- Additional forms the registrant asked for during registration --> | ||
| <% if event_registration.w9_requested? %> | ||
| <%= link_to "/documents/awbw-w9.pdf", | ||
|
|
||
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,33 @@ | ||
| <% content_for(:page_bg_class, "public") %> | ||
|
|
||
| <% reg_slug = params[:reg].presence %> | ||
| <% back_path = reg_slug ? registration_ticket_path(reg_slug) : event_path(@event) %> | ||
| <% back_label = reg_slug ? "Back to ticket" : "Back to event" %> | ||
| <div class="max-w-3xl mx-auto px-4 pt-4"> | ||
| <%= link_to back_path, class: "inline-flex items-center gap-1.5 text-sm text-gray-500 hover:text-gray-700 px-2 py-1" do %> | ||
| <i class="fa-solid fa-arrow-left text-xs"></i> <%= back_label %> | ||
| <% end %> | ||
| </div> | ||
|
|
||
| <div class="max-w-3xl mx-auto pb-12 pt-6 px-4"> | ||
| <div class="bg-white rounded-2xl shadow-xl ring-1 ring-black/5 overflow-hidden"> | ||
| <div class="relative bg-gradient-to-r from-purple-950 to-purple-700 text-white px-6 sm:px-8 py-5"> | ||
| <div class="flex items-center gap-5"> | ||
| <div class="shrink-0"> | ||
| <%= image_tag("logo.png", alt: "Organization logo", class: "h-9 w-auto") %> | ||
| </div> | ||
| <div class="flex-1"> | ||
| <h1 class="text-xl font-semibold tracking-wide leading-tight"><%= @event.ce_hours_details_label %></h1> | ||
| <p class="text-sm text-blue-200"><%= @event.title %></p> | ||
| </div> | ||
| </div> | ||
| <div class="absolute inset-x-0 bottom-0 h-1 bg-gradient-to-r from-accent via-amber-400 to-accent"></div> | ||
| </div> | ||
|
|
||
| <div class="px-6 sm:px-8 py-7"> | ||
| <div class="rich-label prose max-w-none text-gray-700 leading-relaxed prose-headings:text-gray-800 prose-a:text-blue-700"> | ||
| <%= form_label_html(@event.ce_hours_details) %> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> |
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
11 changes: 11 additions & 0 deletions
11
db/migrate/20260617120000_add_ce_hours_details_to_events.rb
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,11 @@ | ||
| class AddCeHoursDetailsToEvents < ActiveRecord::Migration[8.1] | ||
| def up | ||
| add_column :events, :ce_hours_details, :text | ||
| add_column :events, :ce_hours_details_label, :string, default: "CE hours", null: false | ||
| end | ||
|
|
||
| def down | ||
| remove_column :events, :ce_hours_details, if_exists: true | ||
| remove_column :events, :ce_hours_details_label, if_exists: true | ||
| end | ||
| end |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 From Claude: Mirrors
event_details_label— falls back to the default even when an admin clears the field, so the section never renders unlabelled.