32e2e61789
I also scraped the "auto" parameter which automatically submits the unsubscription form when the link is clicked in a campaign email. Instead, I introduced the unsubscription options ONE_STEP, ONE_STEP_WITH_FORM, TWO_STEP, TWO_STEP_WITH_FORM. The options without "_WITH_FORM" shall behave like when called with "auto". This functionality is to come. Currently it behaves as ONE_STEP_WITH_FORM.
13 lines
614 B
Handlebars
13 lines
614 B
Handlebars
<form method="post" id="main-form" action="/subscription/{{lcid}}/unsubscribe">
|
|
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
|
<input type="hidden" name="campaign" value="{{campaign}}">
|
|
<input type="hidden" name="ucid" value="{{ucid}}">
|
|
|
|
<div class="form-group">
|
|
<label for="email">{{#translate}}Email address{{/translate}}</label>
|
|
<input type="email" name="email" id="email" placeholder="" value="{{email}}" readonly>
|
|
</div>
|
|
|
|
<button type="submit" style="position: absolute; top: -9999px; left: -9999px;">{{#translate}}Unsubscribe{{/translate}}</button>
|
|
</form>
|
|
|