gitlab-org--gitlab-foss/app/views/notes/_form.html.haml

39 lines
1.3 KiB
Plaintext
Raw Normal View History

2012-01-27 07:19:55 +00:00
= form_for [@project, @note], :remote => "true", :multipart => true do |f|
%h3.page_title Leave a comment
2012-01-27 07:19:55 +00:00
-if @note.errors.any?
.alert-message.block-message.error
- @note.errors.full_messages.each do |msg|
%div= msg
2011-10-08 21:36:38 +00:00
2012-01-27 07:19:55 +00:00
= f.hidden_field :noteable_id
= f.hidden_field :noteable_type
2012-08-07 13:17:29 +00:00
= f.text_area :note, :size => 255
#preview-note.well.hide
2012-08-02 21:20:09 +00:00
%p.hint
= link_to "Gitlab Markdown", help_markdown_path, :target => '_blank'
is enabled.
2012-08-07 13:17:29 +00:00
= link_to 'Preview', '#', :id => 'preview-link'
2011-10-08 21:36:38 +00:00
.row.note_advanced_opts.hide
2012-01-27 23:49:14 +00:00
.span4
2012-01-27 07:19:55 +00:00
%h5 Notify via email:
.clearfix
= label_tag :notify do
2012-01-27 07:19:55 +00:00
= check_box_tag :notify, 1, @note.noteable_type != "Commit"
%span Project team
2011-11-15 08:34:30 +00:00
2012-02-10 02:59:39 +00:00
- if @note.notify_only_author?(current_user)
= label_tag :notify_author do
2012-01-27 07:19:55 +00:00
= check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
%span Commit author
.span8
2012-01-27 07:19:55 +00:00
%h5 Attachment:
.clearfix
2012-03-25 16:44:29 +00:00
.attachments
%div.file_name File name...
2012-03-25 16:44:29 +00:00
%button.file_upload.btn.small Upload File
.input= f.file_field :attachment, :class => "input-file"
2012-04-20 21:36:09 +00:00
%span Any file less than 10 MB
2011-10-08 21:36:38 +00:00
= f.submit 'Add Comment', :class => "btn primary submit_note", :id => "submit_note"