pollen_app/app/views/portlets/dynamic_contents/_newsletter.html.haml
Nicolas Bally 120e9803eb initial
2020-04-28 14:51:42 +02:00

13 lines
620 B
Plaintext

-if @admin
plan du site
-else
#newsletter_form
-@registrant = @registrant || Registrant.new
=semantic_form_for [:public, @registrant], :remote => true do |f|
=hidden_field_tag :popup, true
%table{:style => "width:100%;max-width:450px;margin:20px auto;"}
%tr
%td.email=f.input :email, :placeholder => qit("newsletter-home_place_holder-3","Mon email"), :label => false
%td{:style => "width:120px;vertical-align:top"}
=link_to qit("newsletter-submit-3","S'abonner >"), "#", :class => "btn orange", :onclick => "$(this).closest('form').submit();return false;"