gateway/app/views/cms/pages/_form.haml

11 lines
308 B
Plaintext
Raw Normal View History

2022-11-25 13:46:49 +01:00
= form_for @cms_page do |f|
- if @cms_page.errors.any?
#error_explanation
%h2= "#{pluralize(@cms_page.errors.count, "error")} prohibited this cms_page from being saved:"
%ul
- @cms_page.errors.full_messages.each do |message|
%li= message
.actions
= f.submit 'Save'