gitlabhq/app/views/notes/_per_line_form.html.haml
Dmitriy Zaporozhets c7933d7a78 Bootstrap: team
2012-01-28 11:54:11 +02:00

28 lines
885 B
Plaintext

%table{:style => "display:none;"}
%tr.per_line_form
%td{:colspan => 3 }
%div.well
= form_for [@project, @note], :remote => "true", :multipart => true do |f|
%h3 Leave a note
-if @note.errors.any?
.alert-message.block-message.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
= f.text_area :note, :size => 255
.prepend-top-10
= f.submit 'Add note', :class => "btn primary", :id => "submit_note"
.right
= link_to "Close", "#", :class => "btn hide-button"
:javascript
$(function(){
$(".per_line_form .hide-button").bind("click", function(){
$('.per_line_form').hide();
return false;
});
});