Sha256: 85839670e2d21552b5fe3b9e7f91bafde8ba4f473f4ac2b1e45d80f04ef80e77
Contents?: true
Size: 1.52 KB
Versions: 10
Compression:
Stored size: 1.52 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? && registrant.member_registrant? = render('effective/event_registrants/fields_member_only', f: fr) - elsif ticket.member_or_non_member? && !registrant.member_registrant? = render('effective/event_registrants/fields_regular', 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
10 entries across 10 versions & 1 rubygems