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

45 lines
1.6 KiB
Plaintext
Raw Normal View History

= form_for [@project, @note], remote: true, html: { multipart: true, id: nil, class: "new_note js-new-note-form" } do |f|
= note_target_fields
= f.hidden_field :commit_id
= 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)} }
%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" }
%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
.buttons
= f.submit 'Add Comment', class: "btn comment-btn grouped js-comment-button"
%a.btn.grouped.js-close-discussion-note-form Cancel
.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'}.
.clearfix
.note_options
2012-12-03 22:34:50 +01:00
.attachment
%h6 Attachment:
.file_name.js-attachment-filename File name...
2013-01-29 21:29:21 +01:00
%a.choose-btn.btn.btn-small.js-choose-note-attachment-button Choose File ...
2012-12-03 22:34:50 +01:00
.hint Any file up to 10 MB
2012-12-03 22:34:50 +01:00
= f.file_field :attachment, class: "js-note-attachment-input"
2012-12-03 22:34:50 +01:00
.notify_options
%h6 Notify via email:
= label_tag :notify do
= check_box_tag :notify, 1, !@note.for_commit?
2012-12-03 22:34:50 +01:00
Project team
2012-12-03 22:34:50 +01:00
.js-notify-commit-author
= label_tag :notify_author do
2013-01-15 00:27:26 +01:00
= check_box_tag :notify_author, 1 , @note.for_commit?
2012-12-03 22:34:50 +01:00
Commit author
2012-11-22 02:56:42 +01:00
.clearfix