Sha256: 27cde79586dad1af8fbc73182371b698d3ddef3c0adf6290ef1a336eec05602d

Contents?: true

Size: 953 Bytes

Versions: 4

Compression:

Stored size: 953 Bytes

Contents

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

  - # Signed out
  - if resource.owner.blank?
    .card
      .card-body
        %p Welcome!

        %p You are about to register for #{resource.event}.

        %p 
          Please 
          = link_to 'sign in', '/users/sign_in'
          or
          = link_to 'sign up', '/users/sign_up'
          to continue.
          
        %p= link_to 'Sign In to Continue', '/users/sign_in', class: 'btn btn-primary'

  - # Signed in
  - if resource.owner.present?
    .card
      .card-body
        %p Welcome #{current_user}!

        %p You are registering for #{resource.event}.

        = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
          = f.hidden_field :id

          = f.hidden_field :event_id

          = f.hidden_field :owner_type
          = f.hidden_field :owner_id

          = f.save 'Save and Continue'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
effective_events-2.29.1 app/views/effective/event_registrations/start.html.haml
effective_events-2.29.0 app/views/effective/event_registrations/start.html.haml
effective_events-2.28.3 app/views/effective/event_registrations/start.html.haml
effective_events-2.28.2 app/views/effective/event_registrations/start.html.haml