Sha256: 3a7e7ecc13012a872851e943dc8a406ce9debdca715fae153bc1f9086bf160f5

Contents?: true

Size: 911 Bytes

Versions: 6

Compression:

Stored size: 911 Bytes

Contents

= render('layout') do
  - cpd_audit = resource.cpd_audit

  %p #{cpd_audit.name} has submitted the following statements:

  - datatable = EffectiveCpdCompletedStatementsDatatable.new(user: cpd_audit.user, actions: false)

  - if datatable.blank?(self)
    %p
      %strong There are no completed CPD statements from #{cpd_audit.name}.
  - else
    = render_datatable(datatable, simple: true)

  %h2 All Statements
  %p Click to expand any statements

  - datatable.collection.sorted.each do |cpd_statement|
    .mb-3
      = collapse("#{cpd_statement.to_s}...", card_class: 'mb-3') do
        = render('effective/cpd_statements/cpd_statement', cpd_statement: cpd_statement)

  = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
    = f.hidden_field :current_step

    %hr
    = f.text_area :comments, label: 'Reviewer comments'

    = f.submit 'Save and Continue', center: true

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_cpd-1.2.1 app/views/effective/cpd_audit_reviews/statements.html.haml
effective_cpd-1.2.0 app/views/effective/cpd_audit_reviews/statements.html.haml
effective_cpd-1.1.3 app/views/effective/cpd_audit_reviews/statements.html.haml
effective_cpd-1.1.2 app/views/effective/cpd_audit_reviews/statements.html.haml
effective_cpd-1.1.1 app/views/effective/cpd_audit_reviews/statements.html.haml
effective_cpd-1.1.0 app/views/effective/cpd_audit_reviews/statements.html.haml