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