Sha256: 2b9751df97237dd16cb4a7ca6570f0066b676610c5090e84d3678adc01b3f98c
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 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.new_cpd_audit_level_collection, 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" = render('admin/cpd_audits/form_new_fields', form: f, f: f) %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