Sha256: 5d6887300acf64b2eb5b36e9232ced288dc17a32b8e8668f71a96f596b2196e9

Contents?: true

Size: 976 Bytes

Versions: 9

Compression:

Stored size: 976 Bytes

Contents

- raise('expected an exemption requested cpd audit') unless cpd_audit.exemption_requested? || cpd_audit.errors.present?

%h2 Exemption Request
%p The auditee has requested an exemption:
= render('effective/cpd_audits/exemption', cpd_audit: cpd_audit, step: :exemption)

%h2 Resolve Exemption Request
%p Please grant or deny the request. If granted, this audit will be closed.

= card('Exemption Request') do
  %p The exemption request shall be

  = effective_form_with(model: [:admin, cpd_audit], engine: true) do |f|
    = f.radios :admin_process_request, EffectiveCpd.CpdAudit.admin_process_request_options, label: false, buttons: true, required: true

    = f.show_if :admin_process_request, 'Granted' do
      %p Send email
      = email_form_fields(f, :cpd_audit_exemption_granted)

    = f.show_if :admin_process_request, 'Denied' do
      %p Send email
      = email_form_fields(f, :cpd_audit_exemption_denied)

    = f.submit 'Process Exemption Request', center: true

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_cpd-1.2.4 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.2.3 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.2.2 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.2.1 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.2.0 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.1.3 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.1.2 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.1.1 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.1.0 app/views/admin/cpd_audits/_form_exemption.html.haml