2015-01-15 06:42:58 +00:00
|
|
|
.note-edit-form
|
2017-01-06 10:33:06 +00:00
|
|
|
= form_tag '#', method: :put, class: 'edit-note common-note-form js-quick-submit' do
|
2017-01-02 17:14:43 +00:00
|
|
|
= hidden_field_tag :target_id, '', class: 'js-form-target-id'
|
|
|
|
= hidden_field_tag :target_type, '', class: 'js-form-target-type'
|
2016-11-16 11:09:09 +00:00
|
|
|
= render layout: 'projects/md_preview', locals: { url: preview_markdown_path(project), referenced_users: true } do
|
2019-01-07 20:08:19 +00:00
|
|
|
= 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…")
|
2017-05-03 08:48:01 +00:00
|
|
|
= render 'shared/notes/hints'
|
2015-01-15 06:42:58 +00:00
|
|
|
|
2016-03-18 17:23:54 +00:00
|
|
|
.note-form-actions.clearfix
|
2017-05-03 17:41:16 +00:00
|
|
|
.settings-message.note-edit-warning.js-finish-edit-warning
|
2019-01-07 20:08:19 +00:00
|
|
|
= _("Finish editing this message first!")
|
|
|
|
= submit_tag _('Save comment'), class: 'btn btn-nr btn-success js-comment-save-button'
|
2016-03-30 12:54:35 +00:00
|
|
|
%button.btn.btn-nr.btn-cancel.note-edit-cancel{ type: 'button' }
|
2019-01-07 20:08:19 +00:00
|
|
|
= _("Cancel")
|