<%= simple_form_for @comments, as: 'comments', url: "/commenteux/#{@resource.downcase}/#{@resource_id}?parent_div=#{@parent_div}", :remote => true, :data => {:parent => @parent_div}, wrapper: :bootstrap do |c| %>
<%= c.input :title %>
<%= c.input :comment, :label => 'Commentaire' %> <% if defined? current_user %>
<%= c.input :user_id, input_html: {value: current_user.id} %>
<% end %>
<%= link_to "Annuler", "#", :id => "new_notes_cancelled", :class => 'btn', :data => {:parent => @parent_div, :resource => @resource.downcase, :id => @resource_id } %>
<% end %>