<% @subscriber ||= Spree::Chimpy::Subscriber.new %>
<%= form_for @subscriber do |f| %>
  <div>
    <h2><%= t "spree.chimpy.subscribe_to_our_newsletter" %></h2>
    <%= f.label :email, t("spree.chimpy.stay_informed") %>
    <%= f.text_field :email, placeholder: t("spree.chimpy.enter_your_email") %>
    <%= f.submit %>
  </div>
<% end %>
<% @subscriber ||= Spree::Chimpy::Subscriber.new %>
<%= form_for @subscriber do |f| %>
  <div>
    <h2><%= t "spree.chimpy.subscribe_to_our_newsletter" %></h2>
    <%= f.label :email, t("spree.chimpy.stay_informed") %>
    <%= f.email_field :email, placeholder: t("spree.chimpy.enter_your_email") %>
    <%= f.submit %>
  </div>
<% end %>
Use a HTML5 input type=email to be more mobile friendly.
Use a HTML5 input type=email to be more mobile friendly.
