Sha256: 58bc3e5c265c725bb931d93df7feca885cc6a608330e972898fca897d7e49431

Contents?: true

Size: 1 KB

Versions: 3

Compression:

Stored size: 1 KB

Contents

-# In progress payments
- existing = EffectiveProducts.RingWizard.in_progress.for(current_user).first
- datatable = EffectiveResources.best('EffectiveRingWizardsDatatable').new(self, namespace: :effective)

- if existing.present?
  %h2 In Progress Ring Payments

  %p Your payment for Professional Ring is incomplete

  %p
    Please
    = link_to("Continue payment for #{existing}", effective_products.ring_wizard_build_path(existing, existing.next_step), 'data-turbolinks' => false, class: 'btn btn-primary')
    or you can
    = link_to('Abandon registration', effective_products.ring_wizard_path(existing), 'data-confirm': "Really delete #{existing}?", 'data-method': :delete, class: 'btn btn-danger')
    to start over.

  %hr

%h2 Ring Payments

- if datatable.present?
  = render_simple_datatable(datatable)
- else
  %p You have no past ring payments. When you do, we'll show them here.

- if existing.blank?
  %p= link_to 'Order a Professional Ring', effective_products.new_ring_wizard_path, class: 'btn btn-primary'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_products-0.0.5 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.0.4 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.0.3 app/views/effective/ring_wizards/_dashboard.html.haml