{{!--
This subscribe template is used to display the form where users can subscribe.
You need to enable the members feature first.
--}}

<div class="m-subscribe-section__form">
  <form data-members-form="subscribe" id="newsletter-form" class="m-subscribe-section__container">
    <div class="m-subscribe__form">
      <fieldset>
        <label for="newsletter_input" class="sr-only">{{t "Your email address"}}</label>
        <input data-members-email id="newsletter-input" class="m-input in-subscribe-section" type="email"
          placeholder="{{t "Your email address"}}" required />
      </fieldset>
      <button id="newsletter_button" class="m-button primary block" type="submit">{{t "Subscribe"}}</button>
    </div>
    <div class="m-subscribe__success">
      <header class="m-heading no-margin">
        <img src="{{asset "images/success.png"}}" alt="Success!" class="m-subscribe__success_icon">
        <p class="m-heading__description in-newsletter-form">
          {{t "Now check your inbox and click the link to confirm your subscription."}}
        </p>
      </header>
    </div>
    <p class="m-subscribe__invalid m-small-text">
      {{t "Please enter a valid email address"}}
    </p>
    <p class="m-subscribe__error m-small-text">
      {{t "Oops! There was an error sending the email, please try later."}}
    </p>
  </form>
</div>
