%h1= "Commentaires du besoin #{@need.title}" = semantic_form_for [:admin, @need, Message.new], :html => {id: :message_form, :method => :post } do |f| %h4 Écrire un nouveau message = f.inputs do = f.input :content, as: :text, label: false, rows: 5, :input_html => {:style => "height:100px;"} =f.submit "Envoyer", :class => "btn btn-square btn-primary pull-right" %h4= " #{pluralize(@need.messages.count, 'Commentaire')} pour ce besoin" =render collection: @comments, partial: 'message' .pagination= paginate @comments