agenda-libre-ruby/app/views/notes/_form.html.haml

14 lines
413 B
Plaintext

= form_for [:moderation, @note] do |f|
- if @note.errors.any?
#error_explanation
%h2= "#{pluralize(@note.errors.count, "error")} prohibited this note from being saved:"
%ul
- @note.errors.full_messages.each do |msg|
%li= msg
.field
%p.label= f.label Note.human_attribute_name :contents
= f.text_area :contents, cols: 70, rows: 10
.actions
= f.submit t('save')