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

33 lines
992 B
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
%div
2012-01-27 07:57:55 +01:00
%h3 Leave a note
2011-10-08 23:36:38 +02:00
= 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
2012-01-27 07:57:55 +01:00
= f.text_area :note, :size => 255
2011-10-08 23:36:38 +02:00
2012-01-27 07:57:55 +01:00
.row
.span6
%h5 Notify via email:
.clearfix
= label_tag :notify do
= check_box_tag :notify, 1, @note.noteable_type != "Commit"
%span Project team
2011-11-15 09:34:30 +01:00
2012-01-27 07:57:55 +01:00
-if @note.noteable_type == "Commit"
= label_tag :notify_author do
= check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
%span Commit author
.span6
%h5 Attachment:
.clearfix
= f.label :attachment, "Any file, < 10 MB"
.input= f.file_field :attachment, :class => "input-file"
2011-10-08 23:36:38 +02:00
2012-01-27 07:57:55 +01:00
= f.submit 'Add note', :class => "btn primary", :id => "submit_note"