gateway/app/views/cms/sections/_form.html.haml

11 lines
323 B
Plaintext

= form_for @cms_section do |f|
- if @cms_section.errors.any?
#error_explanation
%h2= "#{pluralize(@cms_section.errors.count, "error")} prohibited this cms_section from being saved:"
%ul
- @cms_section.errors.full_messages.each do |message|
%li= message
.actions
= f.submit 'Save'