Skip to content

Instantly share code, notes, and snippets.

@rolis19
Created July 16, 2020 02:59
Show Gist options
  • Save rolis19/7a76bf9f9730d01a498d5d2d83d206aa to your computer and use it in GitHub Desktop.
Save rolis19/7a76bf9f9730d01a498d5d2d83d206aa to your computer and use it in GitHub Desktop.
<div class="modal-content">
<span class="close1">&times;</span>
<div class="popup-sub">
<h4>SUBSCRIBE TO REEBOK FITNESS</h4>
<p>Keep up to date with the latest news, promotional offers and fitness tips.</p>
<p>By subscribing you accept that you have read and agree to our Terms & Conditions and Privacy Policy.</p>
{%- form 'customer', id: 'footer-newsletter', class: 'Footer__Newsletter Form' -%}
{%- if form.posted_successfully? -%}
<p class="Form__Alert Alert Alert--success">You have been subscribed to our newsletter.</p>
{%- else -%}
{%- if form.errors -%}
<p class="Form__Alert Alert Alert--error">{{ form.errors.messages['email'] }}</p>
{%- endif -%}
<input type="hidden" name="contact[tags]" value="newsletter">
<input type="email" name="contact[email]" class="Form__Input" aria-label="Email Address" placeholder="Email Address" required>
<button type="submit" class="Form__Submit Button Button--primary footerButton">Subscribe</button>
{%- endif -%}
{%- endform -%}
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment