<%= simple_form_for @comments, as: 'comments', url: "/commenteux/#{@resource.downcase}/#{@resource_id}?parent_div=#{@parent_div}&roles=#{@roles.blank? ? '' : @roles}", :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 %> <% unless @list_roles.blank? %> <%= c.input :role, collection: @list_roles, as: :radio_buttons, :label_method => :last, :value_method => :first, :input_html => {:data => {:required => true}}, label: 'RĂ´le', :item_wrapper_class => 'inline' %> <% end %>
<%= link_to "Annuler", "#", :id => "new_notes_cancelled", :class => 'btn', :data => {:parent => @parent_div, :resource => @resource.downcase, :id => @resource_id, :roles => @roles} %>
<% end %>