debian-mirror-gitlab/app/views/shared/notes/_edit_form.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
1 KiB
Text
Raw Normal View History

2021-03-11 19:13:27 +05:30
.snippets.note-edit-form
2017-08-17 22:00:37 +05:30
= 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'
2020-06-23 00:09:42 +05:30
= render layout: 'shared/md_preview', locals: { url: preview_markdown_path(project), referenced_users: true } do
2020-07-28 23:09:34 +05:30
= render 'shared/zen', attr: 'note[note]', classes: 'note-textarea js-note-text js-task-list-field', qa_selector: 'edit_note_field', placeholder: _("Write a comment or drag your files here…")
2017-08-17 22:00:37 +05:30
= render 'shared/notes/hints'
.note-form-actions.clearfix
.settings-message.note-edit-warning.js-finish-edit-warning
2019-02-15 15:39:39 +05:30
= _("Finish editing this message first!")
2023-06-20 00:43:36 +05:30
= render Pajamas::ButtonComponent.new(type: 'submit', variant: :confirm, button_options: { class: 'js-comment-save-button', data: { qa_selector: 'save_comment_button' } }) do
= _("Save comment")
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'note-edit-cancel' }) do
2019-02-15 15:39:39 +05:30
= _("Cancel")