gitlabhq/app/views/notes/_form.html.haml
Dmitriy Zaporozhets 6b030fd41d 1.1pre1
2011-10-21 20:04:41 +03:00

28 lines
712 B
Text

%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
= f.text_area :note, :size => 255
%div.attach_holder
= 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"
.clear
%br
= f.submit 'Add note', :class => "lbutton vm", :id => "submit_note"