Creating a script for Anthology to update all the names of their learner properties based on new subscription model. Downloaded and updated some templates for this same project.

This commit is contained in:
Norm Rasmussen
2025-08-21 15:40:52 -04:00
parent b52e7cfac1
commit 6edb965eef
120 changed files with 533 additions and 225 deletions

View File

@ -0,0 +1,30 @@
{% 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" %}