gitlab-org--gitlab-foss/app/views/projects/notes/_edit_form.html.haml

15 lines
926 B
Plaintext
Raw Normal View History

2015-01-15 06:42:58 +00:00
.note-edit-form
= form_for note, url: namespace_project_note_path(@project.namespace, @project, note), method: :put, remote: true, authenticity_token: true do |f|
= note_target_fields(note)
2015-04-29 20:56:50 +00:00
= render layout: 'projects/md_preview', locals: { preview_class: 'note-text' } do
= render 'projects/zen', f: f, attr: :note, classes: 'note_text js-note-text js-task-list-field'
2015-01-15 06:42:58 +00:00
.comment-hints.clearfix
2015-04-29 20:11:48 +00:00
.pull-left Comments are parsed with #{link_to 'GitLab Flavored Markdown', help_page_path('markdown', 'markdown'),{ target: '_blank', tabindex: -1 }}
.pull-right Attach files by dragging & dropping or #{link_to 'selecting them', '#', class: 'markdown-selector', tabindex: -1 }.
2015-01-15 06:42:58 +00:00
.note-form-actions
.buttons
2015-04-29 20:11:48 +00:00
= f.submit 'Save Comment', class: 'btn btn-primary btn-save btn-grouped js-comment-button'
= link_to 'Cancel', '#', class: 'btn btn-cancel note-edit-cancel'