Sha256: f486e6e03f2252e69c8fecd6b80c0afa59af9a7c681e807325c8190d19863ed1

Contents?: true

Size: 1.16 KB

Versions: 46

Compression:

Stored size: 1.16 KB

Contents

.effective-cpd-audit-review
  = render('effective/cpd_audit_reviews/summary', cpd_audit_review: cpd_audit_review)

  - steps = cpd_audit_review.required_steps.select { |step| cpd_audit_review.has_completed_step?(step) }
  - blacklist = [:start, :information, :instructions, :waiting, :statements, :questionnaire, :submit, :complete]

  - (steps - blacklist).each do |step|
    - if cpd_audit_review.dynamic_wizard_questionnaire_steps.keys.include?(step)
      - cpd_audit_level_section = cpd_audit_review.cpd_audit_level_section(step) || raise("no cpd audit section for #{step}")
      = render("effective/cpd_audit_reviews/cpd_audit_level_section", cpd_audit_review: cpd_audit_review, step: step, cpd_audit_level_section: cpd_audit_level_section)

    - elsif cpd_audit_review.dynamic_wizard_statement_steps.keys.include?(step)
      - cpd_statement = cpd_audit_review.cpd_statement(step) || raise("no cpd statement for #{step}")
      = render("effective/cpd_audit_reviews/cpd_statement", cpd_audit_review: cpd_audit_review, step: step, cpd_statement: cpd_statement)

    - else
      = render("effective/cpd_audit_reviews/#{step}", cpd_audit_review: cpd_audit_review, step: step)

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
effective_cpd-0.1.5 app/views/effective/cpd_audit_reviews/_cpd_audit_review.html.haml
effective_cpd-0.1.4 app/views/effective/cpd_audit_reviews/_cpd_audit_review.html.haml
effective_cpd-0.1.3 app/views/effective/cpd_audit_reviews/_cpd_audit_review.html.haml
effective_cpd-0.1.2 app/views/effective/cpd_audit_reviews/_cpd_audit_review.html.haml
effective_cpd-0.1.1 app/views/effective/cpd_audit_reviews/_cpd_audit_review.html.haml
effective_cpd-0.1 app/views/effective/cpd_audit_reviews/_cpd_audit_review.html.haml