Sha256: 611ce6cdf7896d70265d4fedea0958a4c4390667041b4a1adf977369c62f82ce

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

= render('layout') do
  %p You have been selected for #{resource.cpd_audit_level} audit and matched with:

  %ul
    - resource.cpd_audit_reviews.each do |cpd_audit_review|
      %li #{cpd_audit_review.user} <#{mail_to(cpd_audit_review.user.email)}>

  - if resource.deadline_to_conflict_of_interest.present? && !resource.ignore_deadlines?
    %p The deadline to declare a conflict of interest is: #{resource.deadline_to_conflict_of_interest.strftime('%F')}.

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

    = f.radios :conflict_of_interest, cpd_audit_conflict_of_interest_collection,
      inline: true, required: true

    = f.show_if :conflict_of_interest, true do
      = f.text_area :conflict_of_interest_reason, required: true

    = f.show_if :conflict_of_interest, false do
      = f.hidden_field :conflict_of_interest_reason, value: ''

    %p A new auditor will be selected if there is a conflict of interest.

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
effective_cpd-0.6.9 app/views/effective/cpd_audits/conflict.html.haml
effective_cpd-1.0.0 app/views/effective/cpd_audits/conflict.html.haml
effective_cpd-0.6.8 app/views/effective/cpd_audits/conflict.html.haml
effective_cpd-0.6.7 app/views/effective/cpd_audits/conflict.html.haml