-
Notifications
You must be signed in to change notification settings - Fork 24
WAIT: Add CE request/payment deadlines to events #1870
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <%# CE deadlines for a registrant who requested continuing-education credit, | ||
| shown in the confirmation and reminder emails. Mirrors the CE callout's | ||
| deadline copy. Locals: event (decorated), registration. The deadlines are | ||
| plain dates, so no time zone is applied. %> | ||
| <% if registration.ce_credit_requested? && (event.ce_hours_request_deadline || event.ce_payment_due_deadline) %> | ||
|
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: Gated on
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: Gated on |
||
| <div style="text-align: left; background-color: #f0fdfa; border: 1px solid #99f6e4; border-radius: 6px; padding: 16px; margin: 16px 0;"> | ||
| <p style="font-size: 14px; font-weight: 600; color: #115e59; margin: 0 0 8px;"> | ||
| <%= event.ce_hours_details_label %> | ||
| </p> | ||
| <% if event.ce_hours_request_deadline %> | ||
| <p style="font-size: 14px; color: #374151; margin: 0 0 4px;"> | ||
| Request your CE hours by <strong><%= event.ce_hours_request_deadline.strftime("%B %-d, %Y") %></strong> | ||
| </p> | ||
| <% end %> | ||
| <% if event.ce_payment_due_deadline %> | ||
| <p style="font-size: 14px; color: #374151; margin: 0;"> | ||
| CE payment due by <strong><%= event.ce_payment_due_deadline.strftime("%B %-d, %Y") %></strong> | ||
| </p> | ||
| <% end %> | ||
| </div> | ||
| <% end %> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <% if registration.ce_credit_requested? && (event.ce_hours_request_deadline || event.ce_payment_due_deadline) %> | ||
| <%= event.ce_hours_details_label %> | ||
| <% if event.ce_hours_request_deadline %>Request your CE hours by <%= event.ce_hours_request_deadline.strftime("%B %-d, %Y") %> | ||
| <% end %><% if event.ce_payment_due_deadline %>CE payment due by <%= event.ce_payment_due_deadline.strftime("%B %-d, %Y") %> | ||
| <% end %><% end %> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| class AddCeDeadlinesToEvents < ActiveRecord::Migration[8.1] | ||
| def up | ||
| add_column :events, :ce_hours_request_deadline, :date unless column_exists?(:events, :ce_hours_request_deadline) | ||
| add_column :events, :ce_payment_due_deadline, :date unless column_exists?(:events, :ce_payment_due_deadline) | ||
| end | ||
|
|
||
| def down | ||
| remove_column :events, :ce_hours_request_deadline, if_exists: true | ||
| remove_column :events, :ce_payment_due_deadline, if_exists: true | ||
| end | ||
| end |
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: The deadline suffix is suppressed once
paid_in_full?. CE payment isn't tracked separately from the event fee, so this reuses the same signalcallouts/cealready uses to show CE "Paid".