Sha256: 8c08c05cf0c5fc8cd4e1892a405ad308b085e5afaf34e926b3e8404a6b6c6d92

Contents?: true

Size: 1.08 KB

Versions: 9

Compression:

Stored size: 1.08 KB

Contents

= render('layout') do
  - raise('expected a submitted or conflicted cpd_audit') unless (resource.was_submitted? || resource.was_conflicted? || resource.closed?)

  - if resource.was_submitted?
    .alert.alert-success.mb-4
      This audit was submitted on #{resource.submitted_at.strftime('%F')}

  - if resource.missing_info?
    = card do
      = render 'effective/cpd_audits/missing_info', cpd_audit: resource

  - if resource.was_submitted?
    %p
      The following audit was successfully submitted at
      = succeed('.') do
        = resource.submitted_at.strftime('%F')

      - unless resource.determination.present?
        Your audit must be reviewed and a final determination made.
        We will send
        %strong= resource.user.email
        an email notifying you of the determination.

  = render 'effective/cpd_audits/summary', cpd_audit: resource

  .mb-4
    = collapse('Show audit...', card_class: 'my-2') do
      = render 'effective/cpd_audits/cpd_audit', cpd_audit: resource

  = link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_cpd-1.2.4 app/views/effective/cpd_audits/submitted.haml
effective_cpd-1.2.3 app/views/effective/cpd_audits/submitted.haml
effective_cpd-1.2.2 app/views/effective/cpd_audits/submitted.haml
effective_cpd-1.2.1 app/views/effective/cpd_audits/submitted.haml
effective_cpd-1.2.0 app/views/effective/cpd_audits/submitted.haml
effective_cpd-1.1.3 app/views/effective/cpd_audits/submitted.haml
effective_cpd-1.1.2 app/views/effective/cpd_audits/submitted.haml
effective_cpd-1.1.1 app/views/effective/cpd_audits/submitted.haml
effective_cpd-1.1.0 app/views/effective/cpd_audits/submitted.haml