Sha256: 48717e212e219ab39e83f81e53941728130ec54c5bb006e2d1ba958b567419f6

Contents?: true

Size: 1.24 KB

Versions: 13

Compression:

Stored size: 1.24 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 Postings

    %p Your posting submission is incomplete:

    %p
      Please
      = link_to("Continue submission for #{submission.classified.presence || 'a classified'}", 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= EffectiveClassifieds.classifieds_label

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

  - if submission.blank?
    %p= link_to "Submit New #{EffectiveClassifieds.classifieds_label} Posting", 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.4.13 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.12 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.11 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.10 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.9 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.8 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.7 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.6 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.5 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.4 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.3 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.2 app/views/effective/classified_wizards/_dashboard.html.haml
effective_classifieds-0.4.1 app/views/effective/classified_wizards/_dashboard.html.haml