{%- form 'customer', id: newsletter_id, class: 'Newsletter Form' -%} {%- if form.posted_successfully? -%}

{{ 'home_page.newsletter.success' | t }}

{%- else -%} {%- if form.errors -%}

{{ form.errors.messages['email'] }}

{%- endif -%} {%- endif -%} {%- endform -%}