Sha256: 2607777823097d824f0825aec58a8bb9b99fd8f0a16e1c94282c2297dea69002

Contents?: true

Size: 1.16 KB

Versions: 41

Compression:

Stored size: 1.16 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 = f.object.event
  - 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|
    - event_registrant = fr.object
    - event_ticket = event_registrant.event_ticket

    = card do
      %p
        = event_ticket
        = ' - '

        - if event_ticket.member_or_non_member? && event_registrant.first_name.blank? && !event.early_bird?
          = effective_events_ticket_price(event, event_ticket)
        - else
          = price_to_currency(event_registrant.price)

        = event_registrant.details

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

      = fr.show_if(:blank_registrant, false) do
        = render('effective/event_registrants/fields', f: fr)

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

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
effective_events-2.31.4 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.31.3 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.31.2 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.31.1 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.31.0 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.30.3 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.30.2 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.30.1 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.30.0 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.29.6 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.29.5 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.29.4 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.29.3 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.29.2 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.29.1 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.29.0 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.28.3 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.28.2 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.28.1 app/views/effective/event_registrations/_form_blank_registrants.html.haml
effective_events-2.28.0 app/views/effective/event_registrations/_form_blank_registrants.html.haml