BigW Consortium Gitlab

_edit_form.html.haml 637 Bytes
Newer Older
1
.note-edit-form
Vinnie Okada committed
2
  = form_for note, url: namespace_project_note_path(@project.namespace, @project, note), method: :put, remote: true, authenticity_token: true 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 9

    .note-form-actions
      .buttons
10 11
        = 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'