Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-05-05 18:12:00 +0300
committerSean McGivern <sean@mcgivern.me.uk>2017-05-05 18:12:00 +0300
commitd4733aa025099ba275f6be2ddddd49ececfbf301 (patch)
treeab04d008a02381a17bcbed78aaa361c5ec56d616 /app/views/shared/notes/_edit_form.html.haml
parent672278ba0fd9b74ba649bd54cfba967c3b13eb46 (diff)
parente4f7b87ddb4ba83456871eb83b841192b1b56799 (diff)
Merge branch '12910-personal-snippets-notes' into 'master'
Support comments for personal snippets Closes #12910 See merge request !11090
Diffstat (limited to 'app/views/shared/notes/_edit_form.html.haml')
-rw-r--r--app/views/shared/notes/_edit_form.html.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/shared/notes/_edit_form.html.haml b/app/views/shared/notes/_edit_form.html.haml
new file mode 100644
index 00000000000..8923e5602a4
--- /dev/null
+++ b/app/views/shared/notes/_edit_form.html.haml
@@ -0,0 +1,14 @@
+.note-edit-form
+ = form_tag '#', method: :put, class: 'edit-note common-note-form js-quick-submit' do
+ = hidden_field_tag :target_id, '', class: 'js-form-target-id'
+ = hidden_field_tag :target_type, '', class: 'js-form-target-type'
+ = render layout: 'projects/md_preview', locals: { url: preview_markdown_path(project), referenced_users: true } do
+ = render 'projects/zen', attr: 'note[note]', classes: 'note-textarea js-note-text js-task-list-field', placeholder: "Write a comment or drag your files here..."
+ = render 'shared/notes/hints'
+
+ .note-form-actions.clearfix
+ .settings-message.note-edit-warning.js-finish-edit-warning
+ Finish editing this message first!
+ = submit_tag 'Save comment', class: 'btn btn-nr btn-save js-comment-save-button'
+ %button.btn.btn-nr.btn-cancel.note-edit-cancel{ type: 'button' }
+ Cancel