-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunsubscribe.html
More file actions
76 lines (65 loc) · 2.81 KB
/
Copy pathunsubscribe.html
File metadata and controls
76 lines (65 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{% extends "./wrapper.html" %}
{% load actionkit_tags %}
{% block content %}
<div class="ak-grid-row">
<div class="ak-grid-col ak-grid-col-12-of-12">
<h2>{{ page.title }}</h2>
</div>
</div>
<form id="unsub-form" name="act" method="POST" action="/act/" accept-charset="utf-8">
<div class="ak-grid-row">
<div class="area ak-grid-col ak-grid-col-6-of-12">
{% if page.custom_fields.featured_image %}
<img class="ak-featured-img" src="{{page.custom_fields.featured_image}}">
{% endif %}
{% autoescape off %}
{% include_tmpl form.introduction_text %}
{% endautoescape %}
</div>
<div class="area ak-grid-col ak-grid-col-6-of-12 ak-styled-fields {{templateset.custom_fields.field_labels_class|default:"ak-labels-overlaid"}} {{templateset.custom_fields.field_errors_class|default:"ak-errs-below"}}">
<ul class="compact" id="ak-errors"></ul>
<div id="unknown_user">
<div>
<div>
<label for="id_email">Email address</label>
<input id="id_email" type="text" name="email" size=40>
</div>
<input type="hidden" name="country" value="United States">
</div>
</div>
<div id="known_user">
<div class="ak-err">
Not <span id="known_user_name"></span>?
Please don't use this form!
</div>
</div>
{% if user.subscriptions|length > 1 %}
<input type="hidden" name="have_unsub_lists" value="1">
<div>
<label>
Unsubscribe From
</label>
<div class="ak-unsubscribe-lists ak-checkbox-set">
{% for s in user.subscriptions %}
<label class="ak-checkbox-choice" style="display: block">
<input type="checkbox" checked name="unsub_lists" value="{{ s.list.id }}">
{{ s.list.name }}
</label>
{% endfor %}
</div>
</div>
{% endif %}
<div>
<label for="id_action_survey">
{% autoescape off %}
{% include_tmpl form.survey_question_text %}
{% endautoescape %}
</label>
<textarea id="id_action_survey" name="action_survey"></textarea>
</div>
<button type="submit">Unsubscribe</button>
</div>
</div>
<input type="hidden" name="page" value="{{ page.name }}">
</form>
{% endblock %}