Sha256: 4442a63d91dadbb5b77ed990b15b5ad4c76430eea01aba2e2c60102c9b890112

Contents?: true

Size: 941 Bytes

Versions: 59

Compression:

Stored size: 941 Bytes

Contents

= render('layout') do
  - if resource.was_extension_requested?
    = render('effective/cpd_audits/extension', cpd_audit: resource, step: :extension)

  - if resource.deadline_to_extension.present? && !resource.ignore_deadlines?
    %p The deadline to request an extension is: #{resource.deadline_to_extension.strftime('%F')}.

  = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
    = f.hidden_field :current_step

    = f.radios :extension_request, cpd_audit_extension_request_collection,
      inline: true, required: true

    = f.show_if :extension_request, true do
      = f.date_field :extension_request_date, required: true
      = f.text_area :extension_request_reason, required: true

    = f.show_if :extension_request, false do
      = f.hidden_field :extension_request_date, value: ''
      = f.hidden_field :extension_request_reason, value: ''

    = f.submit 'Save and Continue', center: true

Version data entries

59 entries across 59 versions & 1 rubygems

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