2012-08-11 00:07:50 +02: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
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.text_area :note, size: 255
|
2012-08-07 15:17:29 +02:00
|
|
|
#preview-note.well.hide
|
2012-08-02 23:20:09 +02:00
|
|
|
%p.hint
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to "Gitlab Markdown", help_markdown_path, target: '_blank'
|
2012-08-02 23:20:09 +02:00
|
|
|
is enabled.
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to 'Preview', preview_project_notes_path(@project), id: 'preview-link'
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2012-05-27 00:09:44 +02:00
|
|
|
.row.note_advanced_opts.hide
|
2012-08-09 05:36:55 +02:00
|
|
|
.span2
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.submit 'Add Comment', class: "btn primary submit_note", id: "submit_note"
|
2012-08-03 02:28:02 +02:00
|
|
|
.span4.notify_opts
|
|
|
|
%h6.left Notify via email:
|
|
|
|
= 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-08-03 02:28:02 +02:00
|
|
|
- if @note.notify_only_author?(current_user)
|
|
|
|
= label_tag :notify_author do
|
|
|
|
= check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
|
|
|
|
%span Commit author
|
2012-08-09 05:36:55 +02:00
|
|
|
.span6.attachments
|
2012-08-03 02:28:02 +02:00
|
|
|
%h6.left Attachment:
|
|
|
|
%span.file_name File name...
|
2012-08-09 05:36:55 +02:00
|
|
|
|
|
|
|
.input.input_file
|
|
|
|
%a.file_upload.btn.small Upload File
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.file_field :attachment, class: "input-file"
|
2012-08-03 02:28:02 +02:00
|
|
|
%span.hint Any file less than 10 MB
|
2011-10-08 23:36:38 +02:00
|
|
|
|