app/views/effective/cpd_audits/submit.html.haml in effective_cpd-1.0.0 vs app/views/effective/cpd_audits/submit.html.haml in effective_cpd-1.1.0
- old
+ new
@@ -5,11 +5,14 @@
%p
Once submitted you
%strong will not
be able to change your submission
- .mb-4= render(resource)
+ .mb-4= render('effective/cpd_audits/cpd_audit', cpd_audit: resource)
= effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
= f.hidden_field :current_step
- = f.submit 'Submit Audit', center: true
+ - if EffectiveResources.authorized?(self, :resubmit, resource)
+ = f.submit 'Resubmit Audit', center: true
+ - else
+ = f.submit 'Submit Audit', center: true