{% include "header" %}
<main class="np-main np-cta-page np-max-width np-subpage-container">
  <div class="np-card-container np-card-padding-xlarge">
    {% if token %}
      <i class="np-cta-page-icon fal fa-bell-slash"></i>
      <div class="np-form-subheadline np-margin-top">
        {% t .unsubscribe_text %}
      </div>
      <div class="np-form-subheadline np-margin-top">
        {% t .resubscribe_text %}
      </div>
      <form
        id="unsubscribe_form"
        action="{% route email_unsubscribe, unsubscribe_token: token %}"
        method="post"
        class="np-cta-page-buttons"
      >
        {% form_authenticity_token %}
        <input type="hidden" name="_method" value="delete">
        <input type="submit" name="commit" value="{% t .resubscribe_button %}" class="np-button np-button-wide">
      </form>
    {% else %}
      <i class="np-cta-page-icon fal fa-bell-on"></i>
      <div class="np-form-subheadline np-margin-top">
        {% t .resubscribed_text %}
      </div>
    {% endif %}
  </div>
</main>
{% include "footer" %}
