33 lines
784 B
Plaintext
33 lines
784 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, :class => "input_text"
|
|
|
|
%p
|
|
|
|
=f.label :email, "Email :"
|
|
=f.text_field :email, :class => "input_text"
|
|
|
|
%p
|
|
|
|
=f.label :website, "Site :"
|
|
=f.text_field :website, :class => "input_text"
|
|
|
|
%p
|
|
|
|
=f.label :comment, "Commentaire :"
|
|
=f.text_area :comment, :style => "width:98%;height:200px;"
|
|
|
|
|
|
|
|
|
|
=f.submit "Envoyer", :class => " btn btn-primary" |