-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewtributeads.html
73 lines (63 loc) · 2.44 KB
/
viewtributeads.html
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
{% extends "wide.html" %}
{% load custom_filters %}
{% block title %}Tribute Ads{% endblock %}
{% block head %}
<style type="text/css">
#body table { width: 100%; border: none; border-collapse: collapse; border-bottom: 2px solid #c4e5c4; margin-bottom: 2em; }
#body thead tr { border-bottom: 2px solid #c4e5c4; }
#body tbody tr.ad { border-top: 1px solid #c4e5c4; }
#body th { color: #6061ab; padding: 0.5em; font-size: 80%; }
#body td { padding: 0.5em; }
#body td.firstcol { padding-left: 2em; }
#body td.printednames { width: 33%; }
#body td p { margin: 0; }
#body td p.details { display: none; margin-left: 1em; font-size: 80%; color: #555; }
.hastooltip { color: #00A11B; cursor: help; }
</style>
{% endblock %}
{% block content %}
<h2>Tribute Ads</h2>
{% if ads %}
<table>
<thead>
<tr valign="bottom">
<th align="left">Name</th>
<th align="left">Email</th>
<th align="left">Phone</th>
<th align="left">Ad Size</th>
<th align="left">Contents</th>
<th align="left">Payment</th>
{% if capabilities.can_add_registrations %}
<th></th>
{% endif %}
</tr>
</thead>
<tbody>
{% for ad in ads %}
<tr class="ad" valign="baseline">
<td>{{ ad.first_name }} {{ ad.last_name }}</td>
<td>{% if ad.email %}<p><a href="mailto:{{ ad.email }}">{{ ad.email }}</a></p>{% endif %}</td>
<td>{% if ad.phone %}<p>{{ ad.phone }}</p>{% endif %}</td>
<td>{{ ad.ad_size|get_ad_size }}</td>
<td class="printednames">{{ ad.printed_names }}</td>
<td>
{% if ad.payment_made %}
<p><span class="hastooltip" title="Payment Type: {{ ad.payment_type|default:'' }} Transaction Code: {{ ad.transaction_code|default:'' }} Authorization Code: {{ ad.auth_code|default:'' }}">Paid:</span> ${{ ad.payment_made }}</p>
<p class="details">Payment Type: {{ ad.payment_type|default:'' }}</p>
<p class="details">Transaction Code: {{ ad.transaction_code|default:'' }}</p>
<p class="details">Authorization Code: {{ ad.auth_code|default:'' }}</p>
{% endif %}
<p>Due: $<script type="text/javascript" language="javascript">document.write({{ ad.payment_due }} - {{ ad.payment_made }});</script></p>
</td>
{% if capabilities.can_add_registrations %}
<td align="left"><a href="/tribute?id={{ ad.key.id }}"><button name="edit_ad" type="button">Edit</button></a></td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
<p><a href="/admin/csv/tributeads"><button name="download" type="button">Download CSV</button></a></p>
{% else %}
<p>No tribute ads.</p>
{% endif %}
{% endblock %}