gitlabhq/app/views/notes/_per_line_form.html.haml

35 lines
965 B
Plaintext
Raw Normal View History

%table{:style => "display:none;"}
%tr.per_line_form
%td{:colspan => 3 }
%div
= form_for [@project, @note], :remote => "true", :multipart => true do |f|
-if @note.errors.any?
.errors.error
- @note.errors.full_messages.each do |msg|
%div= msg
= f.hidden_field :noteable_id
= f.hidden_field :noteable_type
= f.hidden_field :line_code
%div
= f.label :note
%cite.cgray markdown supported
%br
%br
= f.text_area :note, :size => 255
.clear
%br
2012-01-21 14:22:42 +01:00
= f.submit 'Add note', :class => "positive-button", :id => "submit_note"
2012-01-20 08:51:48 +01:00
.right
2012-01-21 14:22:42 +01:00
= link_to "Close", "#", :class => "grey-button hide-button"
2012-01-20 08:51:48 +01:00
:javascript
$(function(){
$(".per_line_form .hide-button").bind("click", function(){
$('.per_line_form').hide();
return false;
});
});