%= 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 :comment, :label => 'Commentaire' %> <% if defined? current_user %> <% 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 %>