= render('layout') do - if resource.was_extension_requested? = render('effective/cpd_audits/extension', cpd_audit: resource, step: :extension) %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