gitlabhq/app/views/notes/_form.html.haml

38 lines
991 B
Plaintext
Raw Normal View History

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
2011-11-06 23:24:09 +01:00
%cite.cgray markdown supported
%br
2011-10-08 23:36:38 +02:00
%br
2011-10-20 18:21:58 +02:00
= f.text_area :note, :size => 255
2011-11-15 09:34:30 +01:00
2011-10-20 18:21:58 +02:00
%div.attach_holder
2011-11-06 23:24:09 +01:00
%br
2011-10-08 23:36:38 +02:00
= f.label :attachment
2011-11-06 23:24:09 +01:00
%cite.cgray (less than 10 MB)
%br
2011-10-08 23:36:38 +02:00
%br
= f.file_field :attachment
2011-12-28 00:29:53 +01:00
%p.notify_controls
%span Notify:
= check_box_tag :notify, 1, @note.noteable_type != "Commit"
= label_tag :notify, "Project team"
2011-10-08 23:36:38 +02:00
2011-12-28 00:29:53 +01:00
-if @note.noteable_type == "Commit"
= check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
= label_tag :notify_author, "Commit author"
2011-10-08 23:36:38 +02:00
.clear
%br
2012-01-21 14:22:42 +01:00
= f.submit 'Add note', :class => "positive-button", :id => "submit_note"