Sha256: bf2bf0de80b82d3b7bb977820e826c405257c45704e37721061509a6b27409b7

Contents?: true

Size: 2 KB

Versions: 5

Compression:

Stored size: 2 KB

Contents

- @title = @content.title

.view{ data: { analytics: checkout_order_placed_analytics_data(@order).to_json } }

  %h1= @content.title

  - if @content.content_blocks_for('confirmation').present?
    = render_content_blocks(@content.content_blocks_for('confirmation'))

  %p= t('workarea.storefront.checkouts.confirmation_text', email: @order.email)

  - if @order.user.present?

    %p= link_to t('workarea.storefront.checkouts.go_to_account'), users_account_path, class: 'button'

  - elsif @order.render_signup_form?

    - if @content.content_blocks_for('confirmation_signup').present?
      = render_content_blocks(@content.content_blocks_for('confirmation_signup'))

    = form_tag users_account_path, id: 'signup_form', method: :post, data: { analytics: checkout_signup_analytics_data.to_json } do
      = hidden_field_tag :email, @order.email
      = hidden_field_tag :first_name, @order.billing_address.first_name
      = hidden_field_tag :last_name, @order.billing_address.last_name
      .property
        = label_tag :password, nil, class: 'property__name' do
          %span.property__requirement.property__requirement--required= t('workarea.storefront.forms.required')
          %span.property__text= t('workarea.storefront.users.password')
        .value= password_field_tag :password, nil, class: 'text-box', required: true, minlength: minimum_password_length, autocomplete: 'off'
      .button-property
        .value= check_box_tag :email_signup, true, params[:email_signup]
        = label_tag :email_signup, nil, class: 'button-property__name' do
          %span.button-property__text= t('workarea.storefront.users.sign_up_for_email')
      %p= button_tag t('workarea.storefront.users.create_account'), value: 'sign_up', class: 'button', data: { disable_with: loading_indicator(t('workarea.storefront.users.create_account_disabled_text')) }

  = render 'workarea/storefront/orders/summary', order: @order, recommendations: @order.recommendations, show_fulfillment: false
  = append_partials('storefront.checkout_confirmation')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-storefront-3.4.16 app/views/workarea/storefront/checkouts/confirmation.html.haml
workarea-storefront-3.4.15 app/views/workarea/storefront/checkouts/confirmation.html.haml
workarea-storefront-3.4.14 app/views/workarea/storefront/checkouts/confirmation.html.haml
workarea-storefront-3.4.13 app/views/workarea/storefront/checkouts/confirmation.html.haml
workarea-storefront-3.4.12 app/views/workarea/storefront/checkouts/confirmation.html.haml