33 lines
706 B
Plaintext
33 lines
706 B
Plaintext
#comment_form.comment_form
|
|
%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
|
|
=f.hidden_field :parent_id
|
|
|
|
%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 btn" |