idn_app/app/views/public/comments/_form.html.haml
Nicolas Bally b5690bc6f2 initial
2016-07-25 15:55:11 +02:00

45 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.comment_form_container
%strong Ajouter un commentaire
%p
En déposant un commentaire j'accepte
%a{:href =>"#", :onclick => "$(this).closest('p').next('div').toggle();return false;"} la charte de modération
des commentaires.
.comment_rules_container{:onclick => "$(this).hide();"}
.inner
%strong Charte de modération des commentaires.
%p
Dans le cadre de notre éthique de non-violence, aucun commentaire incitant à la haine, injurieux, discriminatoire, diffamatoire ne sera publié ; de même ceux à caractère publicitaire et rédigés en langage SMS.
%p
Merci pour votre compréhension
%p
Léquipe de One Voice
=semantic_form_for [:public,(@comment || Comment.new(:commentable_id => @article.id, :commentable_type => "Article", :newsletter => true))], :remote => true do |f|
=f.hidden_field :commentable_id
=f.hidden_field :commentable_type
=f.hidden_field :parent_id
=f.inputs do
=f.input :comment, :label => "Commentaire :"
%table{:style => "width:100%;"}
%tr
%td{:style => "width:50%;"}
=f.inputs do
=f.input :pseudo, :label => "Pseudo :"
=f.input :email, :label => "Email :"
%td{:style => "text-align:center;"}
=f.inputs do
=f.input :newsletter, :label => "Recevoir la newsletter de One Voice"
=link_to "Annuler", "#", :onclick => "$(this).closest('.comment_form_container').remove();return false;", :class => "cancel"
  
=f.submit "Envoyer", :class => "btn"