= render('layout') do %h1= resource.cpd_cycle - raise('expected a submitted cpd_statement') unless resource.submitted_at.present? .alert.alert-warning.mb-4 Successfully submitted on #{resource.submitted_at.strftime('%F')}. - if resource.cpd_cycle.all_steps_content.present? .mb-2= resource.cpd_cycle.all_steps_content.to_s - if resource.cpd_cycle.complete_content.present? .mb-2= resource.cpd_cycle.complete_content.to_s .mb-4= link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block' = render('effective/cpd_statements/cpd_statement', cpd_statement: resource) = link_to "Return to Dashboard", return_to_dashboard_path, class: 'btn btn-lg btn-primary btn-block'