Sha256: 22b5106148d78e170c32902485a33ee85b89206b01aee94bd60255b012ac2dd2

Contents?: true

Size: 1015 Bytes

Versions: 28

Compression:

Stored size: 1015 Bytes

Contents

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

%h2 Extension Request
%p The #{cpd_auditee_label} has requested an extension:
= render('effective/cpd_audits/extension', cpd_audit: cpd_audit, step: :extension)

%h2 Resolve Extension Request
%p Please grant or deny the request. If granted, the #{cpd_auditee_label}'s deadline will be updated.

= card('Extension Request') do
  %p The extension 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_extension_granted)

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

    = f.submit 'Process Extension 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_extension.html.haml
effective_cpd-1.7.1 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.7.0 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.6.5 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.6.4 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.6.3 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.6.2 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.6.1 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.6.0 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.5.1 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.5.0 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.4.8 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.4.7 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.4.6 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.4.5 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.4.4 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.4.3 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.4.2 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.4.1 app/views/admin/cpd_audits/_form_extension.html.haml
effective_cpd-1.4.0 app/views/admin/cpd_audits/_form_extension.html.haml