Sha256: ae1953e3057da81c0f8d21f62aaeb79fd9507bdb1b85342458db7191f2a67db0

Contents?: true

Size: 1.77 KB

Versions: 6

Compression:

Stored size: 1.77 KB

Contents

= render 'layout' do
  = render 'effective/event_registrations/content', resource: resource

  - raise('expected a submitted event_registration') unless resource.submitted?
  - raise('expected a deffered event_registration submit_order') unless resource.submit_order&.deferred?

  - if resource.event.delayed?
    - raise('expected event delayed_payment_date to match order delayed_payment_date') unless resource.event.delayed_payment_date == resource.submit_order.delayed_payment_date

  .mb-4
    = link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'

  = render 'effective/event_registrations/summary', event_registration: resource

  - if resource.event.allow_blank_registrants? && EffectiveResources.authorized?(self, :update_blank_registrants, resource)
    = card do
      %h3 Incomplete Ticket Information
      = render 'effective/event_registrations/form_blank_registrants', event_registration: resource

  - if resource.delayed_payment_date_upcoming? && resource.can_visit_step?(:tickets)
    - order = resource.submit_order

    = card do
      %h3 All done
      %p The registration for #{resource.event} has been submitted. You're all done!
      %p= resource.submit_order.delayed_payment_info

      - if resource.event_registrants.any?(&:waitlisted?)
        %p Any waitlist tickets are not charged. If you are moved off the waitlist, the full price will be charged.

      %p You can #{link_to('change your registration', wizard_path(:tickets))} until the payment date.

  = render 'effective/event_registrations/event_registration', event_registration: resource
  = render 'effective/event_registrations/orders', event_registration: resource

  = link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_events-0.16.0 app/views/effective/event_registrations/submitted.html.haml
effective_events-0.15.1 app/views/effective/event_registrations/submitted.html.haml
effective_events-0.15.0 app/views/effective/event_registrations/submitted.html.haml
effective_events-0.14.2 app/views/effective/event_registrations/submitted.html.haml
effective_events-0.14.1 app/views/effective/event_registrations/submitted.html.haml
effective_events-0.14.0 app/views/effective/event_registrations/submitted.html.haml