2013-03-28 14:39:18 +01:00
|
|
|
= form_for [@project, @note], remote: true, html: { multipart: true, id: nil, class: "new_note js-new-note-form common-note-form" } do |f|
|
2012-12-02 20:47:09 +01:00
|
|
|
|
|
|
|
= note_target_fields
|
2012-12-23 01:03:57 +01:00
|
|
|
= f.hidden_field :commit_id
|
2012-12-02 20:47:09 +01:00
|
|
|
= f.hidden_field :line_code
|
|
|
|
= f.hidden_field :noteable_id
|
|
|
|
= f.hidden_field :noteable_type
|
|
|
|
|
|
|
|
.note_text_and_preview.js-toggler-container
|
2013-01-02 21:07:02 +01:00
|
|
|
%a.js-note-preview-button.js-toggler-target.turn-off{ href: "javascript:;", title: "Preview", data: {url: preview_project_notes_path(@project)} }
|
2012-12-02 20:47:09 +01:00
|
|
|
%i.icon-eye-open
|
2013-01-02 21:07:02 +01:00
|
|
|
%a.js-note-edit-button.js-toggler-target.turn-off{ href: "javascript:;", title: "Edit" }
|
2012-12-02 20:47:09 +01:00
|
|
|
%i.icon-edit
|
|
|
|
|
|
|
|
= f.text_area :note, size: 255, class: 'note_text js-note-text js-gfm-input turn-on'
|
|
|
|
.note_preview.js-note-preview.turn-off
|
|
|
|
|
|
|
|
.hint
|
2013-01-30 15:40:43 +01:00
|
|
|
.pull-right Comments are parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}.
|
2012-12-02 20:47:09 +01:00
|
|
|
.clearfix
|
|
|
|
|
2013-01-31 10:22:06 +01:00
|
|
|
.note-form-actions
|
|
|
|
.buttons
|
|
|
|
= f.submit 'Add Comment', class: "btn comment-btn grouped js-comment-button"
|
2013-02-25 22:10:50 +01:00
|
|
|
= yield(:note_actions)
|
|
|
|
|
2013-01-31 10:22:06 +01:00
|
|
|
%a.btn.grouped.js-close-discussion-note-form Cancel
|
2012-12-02 20:47:09 +01:00
|
|
|
|
2013-01-31 10:22:06 +01:00
|
|
|
.note-form-option
|
|
|
|
%a.choose-btn.btn.btn-small.js-choose-note-attachment-button
|
|
|
|
%i.icon-paper-clip
|
|
|
|
%span Choose File ...
|
|
|
|
|
|
|
|
%span.file_name.js-attachment-filename File name...
|
|
|
|
= f.file_field :attachment, class: "js-note-attachment-input hide"
|
|
|
|
|
|
|
|
.clearfix
|