Sha256: 3e19fb3a86ba8acd7bebe8ad790bd8794e2889c0cf350db3cafb908168a65916

Contents?: true

Size: 1020 Bytes

Versions: 20

Compression:

Stored size: 1020 Bytes

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 payment', 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

20 entries across 20 versions & 1 rubygems

Version Path
effective_products-0.3.10 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.3.9 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.3.8 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.3.7 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.3.6 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.3.5 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.3.4 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.3.3 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.3.2 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.3.1 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.3.0 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.2.1 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.2.0 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.1.2 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.1.1 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.1.0 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.0.9 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.0.8 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.0.7 app/views/effective/ring_wizards/_dashboard.html.haml
effective_products-0.0.6 app/views/effective/ring_wizards/_dashboard.html.haml