diff --git a/app/models/registration_ticket_callout.rb b/app/models/registration_ticket_callout.rb index accc0bcee..74e8546b6 100644 --- a/app/models/registration_ticket_callout.rb +++ b/app/models/registration_ticket_callout.rb @@ -140,6 +140,13 @@ def page_content? description.present? || resources.any? end + # The Payment built-in's visibility is driven entirely by live balance status, + # so the manual visibility controls (drip date, payment gate) don't apply — the + # editor hides its Visibility section. + def payment? + magic_key == "payment" + end + # Whether the callout's page content is drip-scheduled to reveal only from a # future date. The card still shows on the ticket; the page withholds its # content until then (see the callout show page). diff --git a/app/views/events/_registration_ticket_callout_fields.html.erb b/app/views/events/_registration_ticket_callout_fields.html.erb index bfd44d681..7163909df 100644 --- a/app/views/events/_registration_ticket_callout_fields.html.erb +++ b/app/views/events/_registration_ticket_callout_fields.html.erb @@ -20,35 +20,41 @@
The app overrides this with a live-status color when the registrant has action to take (e.g. amber while something's outstanding, orange while a balance is due).
+ <% end %> +The app overrides this with a live-status colour when the registrant has action to take (e.g. amber while something's outstanding, orange while a balance is due).
- <% end %> + <%= f.text_field :icon_class, + class: "w-full rounded border-gray-300 bg-white shadow-sm px-2 py-1 text-sm font-mono", + data: { callout_preview_target: "iconInput", action: "callout-preview#update" } %> +Drips onto the ticket on and after this date. Leave blank to show right away.
+Drips onto the ticket on and after this date. Leave blank to show right away.
-