BigW Consortium Gitlab

_edit_form.html.haml 666 Bytes
Newer Older
1
.note-edit-form
2
  = form_for note, url: namespace_project_note_path(@project.namespace, @project, note), method: :put, remote: true, authenticity_token: true, html: { class: 'edit-note js-quick-submit' } do |f|
3
    = note_target_fields(note)
4
    = render layout: 'projects/md_preview', locals: { preview_class: 'md-preview' } do
5
      = render 'projects/zen', f: f, attr: :note, classes: 'note_text js-note-text js-task-list-field'
6
      = render 'projects/notes/hints'
7 8

    .note-form-actions
Drew Blessing committed
9 10
      = f.submit 'Save Comment', class: 'btn btn-nr btn-save btn-grouped js-comment-button'
      = link_to  'Cancel', '#', class: 'btn btn-nr btn-cancel note-edit-cancel'