app/views/effective/cpd_audits/extension.html.haml in effective_cpd-0.2.0 vs app/views/effective/cpd_audits/extension.html.haml in effective_cpd-0.2.1
- old
+ new
@@ -1,9 +1,10 @@
= 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')}.
+ - if resource.deadline_to_extension.present?
+ %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,