Sha256: 4cc7659d6152f881944a54e5acae4274482dc7ea6c0353f29e6f71f191530bb4

Contents?: true

Size: 826 Bytes

Versions: 15

Compression:

Stored size: 826 Bytes

Contents

.row
  .col-3
    = render_wizard_sidebar(resource)

    %table.table.mt-4
      %tbody
        - if resource.due_date.present? && !resource.completed?
          %tr{title: "#{resource} is due on #{resource.due_date.strftime('%F')}"}
            %td
              %h4= (resource.due_date - Time.zone.now.to_date).to_i.abs

            %td
              = (Time.zone.now > resource.due_date) ? 'days overdue' : 'days left to review'

  .col-9
    %h1= @page_title

    - if resource.cpd_audit_level.rich_text_all_steps_audit_review_content.present?
      .mb-2= resource.cpd_audit_level.rich_text_all_steps_audit_review_content.to_s

    - if resource.cpd_audit_level.send("rich_text_#{step}_audit_review_content").present?
      .mb-2= resource.cpd_audit_level.send("rich_text_#{step}_audit_review_content").to_s

    = yield

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
effective_cpd-0.6.9 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-1.0.0 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.6.8 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.6.7 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.6.6 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.6.5 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.6.4 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.6.3 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.6.2 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.6.1 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.6.0 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.5.4 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.5.3 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.5.2 app/views/effective/cpd_audit_reviews/_layout.html.haml
effective_cpd-0.5.1 app/views/effective/cpd_audit_reviews/_layout.html.haml