Sha256: ef8b9b52e98d3988377f907612831fde71d0bc1705d309bd3976d7cd868519aa

Contents?: true

Size: 1.16 KB

Versions: 13

Compression:

Stored size: 1.16 KB

Contents

- if can?(:new, EffectiveClassifieds.ClassifiedWizard)

  -# In-progress submission
  - submission = EffectiveClassifieds.ClassifiedWizard.in_progress.for(current_user).first
  - datatable = EffectiveResources.best('EffectiveClassifiedWizardsDatatable').new(self, namespace: :effective)

  - if submission.present?
    %h2 In-progress #{classifieds_label}

    %p Your submission is incomplete:

    %p
      Please
      = link_to("Continue submission", effective_classifieds.classified_wizard_build_path(submission, submission.next_step), 'data-turbolinks' => false, class: 'btn btn-primary')
      or you can
      = link_to('Abandon submission', effective_classifieds.classified_wizard_path(submission), 'data-confirm': "Really delete #{submission}?", 'data-method': :delete, class: 'btn btn-danger')
      to submit another.

    %hr

  %h2= classifieds_label

  - if datatable.present?
    = render_simple_datatable(datatable)
  - else
    %p You don't have any #{classifieds_label.downcase}. When you do, we'll show them here.

  - if submission.blank?
    %p= link_to "Submit New #{classified_label}", effective_classifieds.new_classified_wizard_path, class: 'btn btn-primary'

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
effective_classifieds-0.8.1 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.8.0 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.7.0 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.6.7 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.6.6 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.6.5 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.6.4 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.6.3 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.6.2 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.6.1 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.6.0 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.5.1 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.5.0 app/views/effective/classified_wizards/_dashboard.html.haml