Sha256: f51c2b26e13ba515f70cbd988d4189266c2257e7dd988f8503fda01388a2b367

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

= effective_form_with(model: [:admin, cpd_audit], engine: true) do |f|

  %h2 Audit
  = f.hidden_field :cpd_audit_level_type, value: EffectiveCpd.CpdAuditLevel.name

  = f.select :cpd_audit_level_id, EffectiveCpd.CpdAuditLevel.all.sorted, label: 'Audit level'

  = f.date_field :notification_date, label: 'Date of notification', required: false,
    hint: "the starting date for any deadline calculations. leave blank for today's date"

  %h2 Auditee
  = card('Auditee') do
    %p.text-muted The auditee is the person being audited
    = render('admin/cpd_audits/auditee_fields', form: f, f: f)

    %p Send email
    = email_form_fields(f, :cpd_audit_opened)

  %h2 Audit Reviewers
  %p.text-muted An audit review will be created for each selected auditor.

  = f.has_many :cpd_audit_reviews, class: 'tight' do |fr|
    = card('Audit Reviewer') do
      %p.text-muted The audit reviewer is the person reviewing an audit
      = render('admin/cpd_audits/audit_reviewer_fields', form: fr, f: fr)

      %p Send email
      = email_form_fields(fr, :cpd_audit_review_opened)

  = f.submit 'Open Audit', center: true

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_cpd-1.1.2 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-1.1.1 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-1.1.0 app/views/admin/cpd_audits/_form_new.html.haml