Sha256: 1ab748338624d1d139ebb3f0d92543d1751505991afef490753f1f5fe00ca6f1

Contents?: true

Size: 985 Bytes

Versions: 55

Compression:

Stored size: 985 Bytes

Contents

= card('Event Registration') do
  %table.table.table-sm
    %tbody
      %tr
        %th.border-0 Event
        %td.border-0
          = link_to(event_registration.event, effective_events.event_path(event_registration.event))

      - if request.path.start_with?('/admin')
        %tr
          %th Registered by
          %td
            - url = (polymorphic_admin_path(event_registration.owner) rescue "/admin/users/#{event_registration.owner.to_param}/edit")
            = link_to(event_registration.owner, url)
      - else
        %tr
          %th Registered by
          %td= event_registration.owner

      - if event_registration.orders.present?
        %tr
          %th Order
          %td
            - event_registration.orders.each do |order|
              = link_to(order, effective_orders.order_path(order))

      - if event_registration.event.delayed?
        %tr
          %th Payment Date
          %td= event_registration.event.delayed_payment_date.strftime('%F')

Version data entries

55 entries across 55 versions & 1 rubygems

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