Sha256: ffcdc6c5242cae044534e8188524e9d0b7dc9403f002daec558cd878d63d1b0f

Contents?: true

Size: 1.01 KB

Versions: 28

Compression:

Stored size: 1.01 KB

Contents

- raise('expected a conflicted cpd audit') unless cpd_audit.conflicted? || cpd_audit.errors.present?

%h2 Conflict of Interest
%p The #{cpd_auditee_label} has indicated a conflict of interest:
= render('effective/cpd_audits/conflict', cpd_audit: cpd_audit, step: :conflict)

%h2 Resolve Conflict of Interest
%p
  Please use the table below to delete any conflicting #{cpd_reviewers_label}, and create another #{cpd_reviewer_label}.

= card("Update #{cpd_reviewers_label}") do
  %p There should be at least one #{cpd_reviewer_label}.

  - datatable = Admin::EffectiveCpdAuditReviewsDatatable.new(cpd_audit_id: cpd_audit.id)
  = render_datatable(datatable, inline: true, simple: true)

= card('Mark Resolved') do
  %p Once resolved, the #{cpd_auditee_label} will be ready to continue their #{cpd_audit_label} questionnaire.

  = effective_form_with(model: [:admin, cpd_audit], engine: true) do |f|
    %p Send email
    = email_form_fields(f, :cpd_audit_conflict_resolved)

    = f.submit 'Resolve Conflict of Interest', center: true

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
effective_cpd-1.3.7 app/views/admin/cpd_audits/_form_conflict.html.haml
effective_cpd-1.3.6 app/views/admin/cpd_audits/_form_conflict.html.haml
effective_cpd-1.3.5 app/views/admin/cpd_audits/_form_conflict.html.haml
effective_cpd-1.3.4 app/views/admin/cpd_audits/_form_conflict.html.haml
effective_cpd-1.3.3 app/views/admin/cpd_audits/_form_conflict.html.haml
effective_cpd-1.3.2 app/views/admin/cpd_audits/_form_conflict.html.haml
effective_cpd-1.3.1 app/views/admin/cpd_audits/_form_conflict.html.haml
effective_cpd-1.3.0 app/views/admin/cpd_audits/_form_conflict.html.haml