Preview as button. Disable note submit unless content
This commit is contained in:
parent
b9b63fc362
commit
e5adca1b81
2 changed files with 16 additions and 4 deletions
|
@ -10,12 +10,13 @@
|
|||
= f.text_area :note, size: 255
|
||||
#preview-note.well.hide
|
||||
.hint
|
||||
= link_to 'Preview', preview_project_notes_path(@project), id: 'preview-link'
|
||||
.right Comments are parsed with #{link_to "Gitlab Flavored Markdown", help_markdown_path, target: '_blank'}.
|
||||
.clearfix
|
||||
|
||||
.row.note_advanced_opts.hide
|
||||
.span2
|
||||
= f.submit 'Add Comment', class: "btn primary submit_note", id: "submit_note"
|
||||
.span3
|
||||
= f.submit 'Add Comment', class: "btn primary submit_note grouped", id: "submit_note"
|
||||
= link_to 'Preview', preview_project_notes_path(@project), class: 'btn grouped', id: 'preview-link'
|
||||
.span4.notify_opts
|
||||
%h6.left Notify via email:
|
||||
= label_tag :notify do
|
||||
|
@ -26,7 +27,7 @@
|
|||
= label_tag :notify_author do
|
||||
= check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
|
||||
%span Commit author
|
||||
.span6.attachments
|
||||
.span5.attachments
|
||||
%h6.left Attachment:
|
||||
%span.file_name File name...
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue