Sha256: 0dcadedc70f52d06d52d523d191a58cf18bbd526e95aadb2840f429bd77befe7

Contents?: true

Size: 1.35 KB

Versions: 3

Compression:

Stored size: 1.35 KB

Contents

= effective_form_with(model: resource, url: effective_events.update_blank_registrants_event_event_registration_path(event_registration.event, event_registration), method: :put) do |f|
  = f.hidden_field :id

  - event_registrants = f.object.event_registrants.select(&:blank_registrant?)

  %p Please update the information for the following #{pluralize(event_registrants.count, 'incomplete ticket')}:

  = f.fields_for :event_registrants, event_registrants do |fr|
    - registrant = fr.object
    - ticket = registrant.event_ticket

    = card do
      %p
        = ticket
        = ' - '
        = price_to_currency(registrant.event_ticket_price)

      = fr.check_box :blank_registrant, label: "I will return and add this ticket's information later"

      = fr.show_if(:blank_registrant, false) do
        - if ticket.regular?
          = render('effective/event_registrants/fields_regular', f: fr)
        - elsif ticket.member_only?
          = render('effective/event_registrants/fields_member_only', f: fr)
        - elsif ticket.member_or_non_member?
          = render('effective/event_registrants/fields_member_or_non_member', f: fr)
        - else
          - raise("Unexpected ticket category: #{ticket.category || 'nil'}")

        = render('effective/event_registrants/fields_questions', f: fr, ticket: ticket)

  = f.submit 'Save Ticket Information', center: true

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_events-0.19.2 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-0.19.1 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-0.19.0 app/views/effective/event_registrations/_form_blank_registrants.html.haml