-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser_view.html
More file actions
80 lines (67 loc) · 2.75 KB
/
user_view.html
File metadata and controls
80 lines (67 loc) · 2.75 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
77
78
79
80
{% extends './wrapper.html' %}
{% block content %}
<div class="ak-grid-row">
<div class="ak-grid-col ak-grid-col-12-of-12">
<h2 class="ak-display-inline-block">{{ actionkit_user.name }}</h2>
<a href="/logout/">Log Out</a>
</div>
</div>
<div class="ak-grid-row">
<div class="ak-grid-col ak-grid-col-12-of-12">
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li>
{{ message }}
</li>
{% endfor %}
</ul>
{% endif %}
<h3>Email And Address</h3>
<div><strong>{{ actionkit_user.email }}</strong></div>
<div class="ak-full-address">{{ actionkit_user.full_address }}</div>
<div><a href="update/">Update your email or address.</a></div>
<h3> Subscription History </h3>
<ul class="ak-margin-none">
{% for subscription in actionkit_user.subscription_history %}
<li>
{{ subscription.list.name }}, {{ subscription.change.name }}, at {{ subscription.created_at|date:"m/d/Y" }}
</li>
{% endfor %}
</ul>
{% if actionkit_user.is_subscribed %}
<div><a href="/cms/unsubscribe/unsubscribe/?akid={{ actionkit_user.token }}">Unsubscribe</a></div>
{% endif %}
{% if recurring_donations %}
<h3> Your Recurring Donations </h3>
<ul class="ak-margin-none">
{% for profile in recurring_donations %}
<li>
<strong>{{ profile.amt }}</strong> a {{ profile.inverse_period_display|lower }}, started on {{ profile.created_at|date:"m/d/Y" }}.
You've given a total of {{ profile.payment_total_amt }}.
{% if profile.is_active %}
{% if profile.order.payment_method != "paypal" %}
<a href="/cms/pledge/update/update/">Manage your recurring profile.</a>
{% else %}
<a href="/cms/pledge/cancel/monthly/">Cancel at any time.</a>
{% endif %}
{% else %}
<b>{{ profile.get_status_display }} on {{ profile.updated_at|date:"m/d/Y" }} </b>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% if donations %}
<h3> Donation History </h3>
<ul>
{% for donation in donations %}
<li>
{{ donation.amt }} on {{ donation.created_at|date:"m/d/Y" }} {% if donation.recurring %} (Recurring) {% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endblock %}