Sha256: 5bfa625d09d1f1bd528bbcf3106f118badff5075f28fe54dd301518773821c37

Contents?: true

Size: 1 KB

Versions: 46

Compression:

Stored size: 1 KB

Contents

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

  %h2 Audit
  = f.select :cpd_audit_level_id, Effective::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

46 entries across 46 versions & 1 rubygems

Version Path
effective_cpd-0.6.9 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-1.0.0 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.6.8 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.6.7 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.6.6 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.6.5 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.6.4 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.6.3 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.6.2 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.6.1 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.6.0 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.5.4 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.5.3 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.5.2 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.5.1 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.5.0 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.4.3 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.4.2 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.4.1 app/views/admin/cpd_audits/_form_new.html.haml
effective_cpd-0.4.0 app/views/admin/cpd_audits/_form_new.html.haml