negos_app/app/views/admin/messages/index.html.haml
2016-10-18 17:19:45 +02:00

19 lines
538 B
Plaintext
Executable File

%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