-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewguests.html
87 lines (75 loc) · 2.68 KB
/
viewguests.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{% extends "wide.html" %}
{% block title %}Dinners{% endblock %}
{% block head %}
<style type="text/css">
#body table { width: 30em; border: none; border-collapse: collapse; border-bottom: 2px solid #c4e5c4; margin: 0 auto 2em; }
#body thead tr { border-bottom: 2px solid #c4e5c4; }
#body tbody tr.sponsor { border-top: 1px solid #c4e5c4; }
#body tbody tr.guest:hover { background-color: #e7fbe7; }
#body th { color: #6061ab; padding: 0.5em; font-size: 80%; }
#body td { padding: 0.5em; }
#body tr.sponsor td { font-weight: bold; padding-top: 1em; }
#body td.firstcol { padding-left: 2em; }
#body td p { margin: 0; }
#body td p.details { margin-left: 1em; font-size: 80%; color: #555; }
#body tr.seating p { font-size: 80%; font-style: italic; color: #555; }
</style>
{% endblock %}
{% block subnav %}
<ul class="viewnav">
<li><a href="/admin/view/registrations">All Registrations</a></li>
<li><a href="/admin/view/golfers">Golfers by Sponsor</a></li>
<li><a href="/admin/view/golfers/byname">Golfers by Name</a></li>
<li><a href="/admin/view/golfers/byteam">Golfers by Team</a></li>
<li><a href="/admin/view/golfers/bystart">Golfers by Start</a></li>
<li><a href="/admin/view/golfers/handicap">Handicap</a></li>
<li><a href="/admin/view/golfers/pairing">Pairing</a></li>
<li class="selected"><a href="/admin/view/dinners">Dinners</a></li>
<li><a href="/admin/view/seating">Assign Seating</a></li>
<li><a href="/admin/view/unpaid">Unpaid</a></li>
<li><a href="/admin/view/incomplete">Incomplete</a></li>
<li><a href="/admin/view/unconfirmed">Unconfirmed</a></li>
</ul>
{% endblock %}
{% block content %}
<h2>Dinners</h2>
{% if dinners %}
<table>
<thead>
<tr valign="bottom">
<th align="left">Contact<br>  Golfer/Dinner Guest</th>
<th align="left">Dinner Choice</th>
<th align="right">Table</th>
</tr>
</thead>
<tbody>
{% for d in dinners %}
{% ifequal d.sequence 1 %}
<tr class="sponsor" valign="baseline">
<td colspan="2"><a href="/register?id={{ d.sponsor_id }}">{{ d.sponsor_name }}</a></td>
</tr>
{% endifequal %}
<tr class="guest" valign="baseline">
<td class="firstcol">{{ d.count }}. {{ d.guest_name }}</td>
<td>{{ d.dinner_choice }}</td>
<td align="right">{{ d.table_num }}</td>
</tr>
{% if d.seating %}
<tr class="seating" valign="baseline">
<td class="firstcol" colspan="3"><p>Seating preference: {{ d.seating }}</p></td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
<p><b>Total dinners:</b></p>
<ul>
{% for key, value in dinner_choices.items %}
<li>{{ key }}: {{ value }}</li>
{% endfor %}
</ul>
<p><a href="/admin/csv/dinners"><button name="download" type="button">Download CSV</button></a></p>
{% else %}
<p>No dinner guests.</p>
{% endif %}
{% endblock %}