Sha256: 56ac267c88a610a18ea5d5f41f5f8c09fb3b00d5ca7b1970c22882b0aa897c62

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

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

- if existing.present?
  %h2 In Progress Stamp Requests

  %p Your request for Professional Stamp is incomplete

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

  %hr

%h2 Stamp Replacement Requests

= yield

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

- if existing.blank?
  %p= link_to 'Start Stamp Replacement Request', effective_products.new_stamp_wizard_path, class: 'btn btn-primary'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_products-0.1.2 app/views/effective/stamp_wizards/_dashboard.html.haml
effective_products-0.1.1 app/views/effective/stamp_wizards/_dashboard.html.haml
effective_products-0.1.0 app/views/effective/stamp_wizards/_dashboard.html.haml