negos_app/app/views/public/comments/_form.html.haml
2016-02-16 21:09:48 +01:00

32 lines
573 B
Plaintext
Executable File

%h3
Ajouter un commentaire
=form_for [:public,(@comment || Comment.new(:commentable_id => @article.id, :commentable_type => "Article"))], :remote => true do |f|
=f.hidden_field :commentable_id
=f.hidden_field :commentable_type
%p
=f.label :pseudo, "Pseudo :"
=f.text_field :pseudo
%p
=f.label :email, "Email :"
=f.text_field :email
%p
=f.label :website, "Site :"
=f.text_field :website
%p
=f.label :comment, "Commentaire :"
=f.text_area :comment, :style => "width:98%;height:200px;"
=f.submit "Envoyer", :class => "submit"