2012-01-27 02:19:55 -05:00
|
|
|
= form_for [@project, @note], :remote => "true", :multipart => true do |f|
|
2012-01-27 01:57:55 -05:00
|
|
|
%h3 Leave a note
|
2012-01-27 02:19:55 -05:00
|
|
|
-if @note.errors.any?
|
|
|
|
.alert-message.block-message.error
|
|
|
|
- @note.errors.full_messages.each do |msg|
|
|
|
|
%div= msg
|
2011-10-08 17:36:38 -04:00
|
|
|
|
2012-01-27 02:19:55 -05:00
|
|
|
= f.hidden_field :noteable_id
|
|
|
|
= f.hidden_field :noteable_type
|
|
|
|
= f.text_area :note, :size => 255
|
2011-10-08 17:36:38 -04:00
|
|
|
|
2012-01-27 02:19:55 -05:00
|
|
|
.row
|
2012-01-27 18:49:14 -05:00
|
|
|
.span4
|
2012-01-27 02:19:55 -05:00
|
|
|
%h5 Notify via email:
|
|
|
|
.clearfix
|
|
|
|
= label_tag :notify do
|
|
|
|
= check_box_tag :notify, 1, @note.noteable_type != "Commit"
|
|
|
|
%span Project team
|
2011-11-15 03:34:30 -05:00
|
|
|
|
2012-02-09 21:59:39 -05:00
|
|
|
- if @note.notify_only_author?(current_user)
|
2012-01-27 02:19:55 -05:00
|
|
|
= label_tag :notify_author do
|
|
|
|
= check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
|
|
|
|
%span Commit author
|
2012-03-24 12:30:04 -04:00
|
|
|
.span8
|
2012-01-27 02:19:55 -05:00
|
|
|
%h5 Attachment:
|
|
|
|
.clearfix
|
2012-03-24 12:40:21 -04:00
|
|
|
.attachments.breadcrumb
|
|
|
|
%span.file_name File name...
|
|
|
|
%button.file_upload.btn.primary Upload File
|
2012-03-24 12:08:42 -04:00
|
|
|
.input= f.file_field :attachment, :class => "input-file"
|
2012-03-24 12:40:21 -04:00
|
|
|
%span Any file less then 10 MB
|
2011-10-08 17:36:38 -04:00
|
|
|
|
2011-12-24 11:28:20 -05:00
|
|
|
|
2012-03-24 12:08:42 -04:00
|
|
|
= f.submit 'Add Comment', :class => "btn primary", :id => "submit_note"
|