2011-10-08 23:36:38 +02:00
|
|
|
%div
|
|
|
|
= form_for [@project, @note], :remote => "true", :multipart => true do |f|
|
|
|
|
-if @note.errors.any?
|
|
|
|
.errors.error
|
|
|
|
- @note.errors.full_messages.each do |msg|
|
|
|
|
%div= msg
|
|
|
|
|
|
|
|
= f.hidden_field :noteable_id
|
|
|
|
= f.hidden_field :noteable_type
|
|
|
|
|
|
|
|
%div
|
|
|
|
= f.label :note
|
|
|
|
%cite (255 symbols only)
|
|
|
|
%br
|
2011-10-20 18:21:58 +02:00
|
|
|
= f.text_area :note, :size => 255
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2011-10-20 18:21:58 +02:00
|
|
|
%div.attach_holder
|
2011-10-08 23:36:38 +02:00
|
|
|
= f.label :attachment
|
|
|
|
%cite (less than 10 MB)
|
|
|
|
%br
|
|
|
|
= f.file_field :attachment
|
|
|
|
|
|
|
|
= check_box_tag :notify, 1, true
|
|
|
|
= label_tag :notify, "Notify project team about your note"
|
2011-10-26 15:46:25 +02:00
|
|
|
|
2011-10-08 23:36:38 +02:00
|
|
|
.clear
|
|
|
|
%br
|
2011-10-17 19:05:47 +02:00
|
|
|
= f.submit 'Add note', :class => "lbutton vm", :id => "submit_note"
|