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

15 lines
471 B
Plaintext
Raw Normal View History

2014-02-18 09:28:04 +01:00
= form_for [:moderation, @note] do |f|
2014-06-23 23:39:42 +02:00
= hidden_field_tag :envoiParMail, params[:envoiParMail]
2014-02-18 09:28:04 +01:00
- 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')