app/views/effective/cpd_statements/complete.html.haml in effective_cpd-0.5.4 vs app/views/effective/cpd_statements/complete.html.haml in effective_cpd-0.6.0
- old
+ new
@@ -1,13 +1,20 @@
= 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
- = render(resource)
+ = link_to "Return to Dashboard", root_path, class: 'btn btn-lg btn-primary mb-4'
+ = render('effective/cpd_statements/cpd_statement', cpd_statement: resource)
+
%hr
- .text-center= link_to 'Home', root_url, class: 'btn btn-primary'
+ = link_to "Return to Dashboard", root_path, class: 'btn btn-lg btn-primary'