Sha256: 210cb97c5c8f28896d69c430096dbcb729be88beaf0e7206eea478a8c1f63c91

Contents?: true

Size: 1002 Bytes

Versions: 28

Compression:

Stored size: 1002 Bytes

Contents

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

%h2 Exemption Request
%p The #{cpd_auditee_label} 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 #{cpd_audit_label} 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

28 entries across 28 versions & 1 rubygems

Version Path
effective_cpd-1.7.2 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.7.1 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.7.0 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.6.5 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.6.4 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.6.3 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.6.2 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.6.1 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.6.0 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.5.1 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.5.0 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.4.8 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.4.7 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.4.6 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.4.5 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.4.4 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.4.3 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.4.2 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.4.1 app/views/admin/cpd_audits/_form_exemption.html.haml
effective_cpd-1.4.0 app/views/admin/cpd_audits/_form_exemption.html.haml