-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewgolfersbyname.html
102 lines (92 loc) · 3.79 KB
/
viewgolfersbyname.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{% extends "wide.html" %}
{% block title %}Golfers By Name{% 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.sponsor { border-top: 1px solid #c4e5c4; }
#body tbody tr.golfer: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.pairing 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 class="selected"><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><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>Golfers</h2>
{% if golfers %}
<table>
<thead>
<tr valign="bottom">
<th></th>
<th align="left">Golfer</th>
<th align="center">Gender</th>
<th align="left">Address</th>
<th align="left">Email/Phone</th>
<th align="right">GHIN #</th>
<th align="right">Index</th>
<th align="right">Avg.<br>Score</th>
<th align="right">Tourn.<br>Index</th>
<th align="right">Course<br>Handicap</th>
<th align="center">Tees</th>
<th align="left">Team</th>
<th align="center">Starting<br>Hole</th>
<th align="center">Cart</th>
<th align="center">Shirt<br>Size</th>
<th align="left">Contact</th>
</tr>
</thead>
<tbody>
{% for g in golfers %}
<tr class="golfer" valign="baseline">
<td align="right">{{ g.count }}</td>
<td>{{ g.golfer_name }}</td>
<td align="center">{{ g.golfer.gender }}</td>
<td>
{% if g.golfer.company %}<p>{{ g.golfer.company }}</p>{% endif %}
{% if g.golfer.address %}<p>{{ g.golfer.address }}</p>{% endif %}
{% if g.golfer.city %}<p>{{ g.golfer.city }} {{ g.golfer.state }} {{ g.golfer.zip }}</p>{% endif %}
</td>
<td>
{% if g.golfer.email %}<p><a href="mailto:{{ g.golfer.email }}">{{ g.golfer.email }}</a></p>{% endif %}
{% if g.golfer.phone %}<p>{{ g.golfer.phone }}</p>{% endif %}
{% if g.golfer.fax %}<p>{{ g.golfer.fax }} (fax)</p>{% endif %}
</td>
<td align="right">{{ g.golfer.ghin_number }}</td>
<td align="right">{{ g.handicap_index_str }}</td>
<td align="right">{{ g.golfer.average_score }}</td>
<td align="right">{% if g.golfer.has_index %}{{ g.handicap_index_str }}{% elif g.golfer.average_score %}{{ g.computed_index }}{% endif %}</td>
<td align="right">{% if g.golfer.has_index or g.golfer.average_score %}{{ g.course_handicap }}{% endif %}</td>
<td align="center">{% if g.tees == 1 %}Red{% elif g.tees == 2 %}White{% elif g.tees == 3 %}Blue{% endif %}</td>
<td align="left">{{ g.team_name }}</td>
<td align="center">{{ g.starting_hole }}</td>
<td align="center">{% if g.cart != 0 %}{{ g.cart }}{% endif %}</td>
<td align="center">{{ g.golfer.shirt_size }}</td>
<td align="left"><a href="/register?id={{ g.sponsor_id }}">{{ g.sponsor_name }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>No golfers.</p>
{% endif %}
{% endblock %}