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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
|
{%extends "confreg/confadmin_base.html" %}
{%load miscutil%}
{%block title%}Conference Sponsorship{%endblock%}
{%block layoutblock%}
<h1>Conference Sponsorship - {{conference}}</h1>
{%if unconfirmed_benefits%}
<h2>Unconfirmed benefits</h2>
<p>
The following benefits have been claimed by sponsors, that have not yet been
confirmed. You should try to do this ASAP - this may include things like copying
an image to the website, or making sure there is space for a desk.
</p>
<table class="table table-condensed">
{%for b in unconfirmed_benefits%}
<tr>
<th class="col-md-3">{%ifchanged b.sponsor%}{{b.sponsor}}{%endifchanged%}</th>
<td><a href="benefit/{{b.id}}/">{{b.benefit}}</a></td>
</tr>
{%endfor%}
</table>
{%endif%}
{%if confirmed_sponsors%}
<h2>Confirmed sponsors</h2>
<p>
The following sponsors are confirmed:
</p>
{%regroup confirmed_sponsors by level as regrouped_sponsors%}
<table class="table table-condensed">
{%for level in regrouped_sponsors%}
<tr>
<th colspan="3" class="text-center active">{{level.grouper}}</th>
</tr>
<tr>
<th class="col-md-5">Sponsor</th>
<th>Confirmed</th>
<th>Status</th>
</tr>
{%for s in level.list%}
<tr>
<td class="col-md-5"><a href="{{s.id}}/">{{s}}</a></td>
<td>{{s.confirmedat}}</td>
<td>
{%if s.invoice%}
{%if s.invoice.paidat%}<span class="label label-success">Paid</span>
{%elif s.invoice.isexpired%}<span class="label label-danger">Overdue invoice</span>
{%else%}<span class="label label-info">Invoiced</span>
{%endif%}
{%else%}
<span class="label label-warning">Not invoiced</span>
{%endif%}
</td>
</tr>
{%endfor%}
{%endfor%}
</table>
{%endif%}
{%if unconfirmed_sponsors%}
<h2>Unconfirmed sponsors</h2>
<p>
The following sponsors have signed up, but are not yet confirmed. If you have handled the
sponsor manually, you may want to confirm them manually as well...
</p>
{%regroup unconfirmed_sponsors by level as regrouped_unconfirmed %}
<table class="table table-condensed">
{%for level in regrouped_unconfirmed%}
<tr>
<th colspan="4" class="text-center active">{{level.grouper}}</th>
</tr>
<tr>
<th class="col-md-5">Sponsor</th>
<th>Signed up</th>
<th>Contract signed</th>
<th>Status</th>
</tr>
{%for s in level.list%}
<tr>
<td><a href="{{s.id}}/">{{s}}</a></td>
<td>{{s.signupat}}</td>
<td title="Time the contract was signed by the sponsor">{%if s.contract and s.contract.firstsigned%}{{s.contract.firstsigned}}{%endif%}</td>
<td>
{%if s.invoice%}
{%if s.invoice.isexpired%}
<span class="label label-danger">Overdue invoice</span>
{%else%}
<span class="label label-success">Invoiced</span>
{%endif%}
{%elif s.level.contractlevel < 2 and not s.explicitcontract %}
<span class="label label-warning" title="Sponsor details for {%if s.level.contractlevel == 1 %}click-through{%else%}no{%endif%} contract levels have to be verified before invoice is issued">Pending organizer verification</span>
{%else%}
{%if s.signmethod == 0 and s.contract %}
{%if s.contract.completed %}{# this state can only be reached when automatic contract processing is disabled, but in this case it indicates it is time to confirm #}
<span class="label label-danger" title="Digital contract signed by sponsor at {{s.contract.firstsigned}} and {{conference.contractsendername}} ({{s.contract.completed}}), but sponsorship is not confirmed.">Contract signed and countersigned</span>
{%elif s.contract.firstsigned %}
<span class="label label-warning" title="Digital contract signed by sponsor at {{s.contract.firstsigned}}, but not by {{conference.contractsendername}}.">Pending with signed digital contract</span>
{%else%}
<span class="label label-info" title="Digital contract sent but not signed.">Pending with digital contract</span>
{%endif%}
{%else%}
<span class="label label-info" title="Waiting for contract to be sent in.">Pending with manual contract</span>
{%endif%}
{%endif%}
</td>
</tr>
{%endfor%}
{%endfor%}
</table>
{%endif%}
<h2>Sponsor email</h2>
{%if mails%}
<p>
The following emails have been sent to sponsors so far:
</p>
{%if mails|length > 4 %}
<div class="partial-collapse" aria-expanded="false" id="collapsedMail">
{%endif%}
<table class="table table-condensed">
<tr>
<th>Sent at</th>
<th>Subject</th>
<th>Sent to level(s)</th>
<th>Sent to sponsor(s)</th>
</tr>
{%for m in mails%}
<tr>
<td>{{m.sentat|date:"Y-m-d H:i"}}{%if m.future%}<span title="E-mail has not been sent yet, but is in the queue to be automatically flushed at the send date"> (Not sent yet!)</span>{%endif%}</td>
<td><a href="viewmail/{{m.id}}/">{{m.subject}}</a></td>
<td>{{m.levels.all|join:", "}}</td>
<td>{{m.sponsors.all|join:", "}}</td>
</tr>
{%endfor%}
</table>
{%if mails|length > 4 %}
</div>
<a role="button" class="partial-collapse collapsed" data-toggle="collapse" href="#collapsedMail" aria-expanded="false" aria-controls="collapsedMail"></a>
{%endif%}
{%else%}
<p>
No sponsor emails have been sent yet.
</p>
{%endif%}
<p>
<a href="sendmail/" class="btn btn-default">Send sponsor email</a>
</p>
<h2>Benefit matrix</h2>
<p>
This matrix gives a quick overview of the status of the different benefits for each sponsor, which can be:
</p>
<ul>
<li>Blank - not claimed by sponsor</li>
<li>Claimed - claimed by sponsor, but needs to be confirmed! See top of this page</li>
<li>Confirmed - fully confirmed benefit</li>
<li>Declined - sponsor chose to decline this benefit.</li>
</ul>
<br>
{%for levelname, level in benefitmatrix.items %}
<table class="table table-bordered table-striped table-hover">
<tr><td colspan="{{level.matrix|first|length}}" align="center" bgcolor="gray"><strong>{{levelname}}</strong></td></tr>
<tr>
<td></td>
{%for c in level.benefits%}
<th>{{c.name}}</th>
{%endfor%}
</tr>
{%for r in level.matrix%}
<tr>
{%for bb in r%}<td>
{%if forloop.first%}<a href="{{bb.0}}/">{{bb.1}}</a>{%else%}{# First in loop holds sponsor name, for the rest we have potentially several labels to show #}
{%for b in bb%}
{%if b == 0%}{%if r.bazinga%}x{%endif%}{% arrayindex level.benefits forloop.parentloop.counter0 -1 as benefit%}{%if benefit.expired%}<span class="label label-default sponsormatrixlabel" title="Expired {{benefit.deadline}}">Expired</span>{%endif%}
{%elif b == 1%}<span class="label label-danger sponsormatrixlabel">Declined</span>
{%elif b == 2%}<span class="label label-info sponsormatrixlabel">Claimed</span>
{%elif b == 3%}<span class="label label-success sponsormatrixlabel">Confirmed</span>
{%elif b == 4%}<span class="label label-warning sponsormatrixlabel" title="Some instances are not claiemd or a mix of claim and decline">Partial</span>
{%else%}{{b}}{%endif%}<br/>
{%endfor%}
{%endif%}
</td>{%endfor%}
</tr>
{%endfor%}
</table>
<br>
{%endfor%}
{%if conference.askbadgescan %}
<h2>Badge scanning</h2>
<p>
Badge scanning is (potentially) active for this conference.
</p>
<a href="badgescanstatus/" class="btn btn-default">View badge scan status</a>
<br>
{%endif%}
{%if has_shipment_tracking %}
<h2>Shipments</h2>
<a name="shipment"></a>
<table class="table table-condensed">
<tr class="active">
<th>Sponsor</th>
<th>ID</th>
<th>Shipment</th>
<th>Destination</th>
<th>Sent</th>
<th>Parcels</th>
<th>Arrived</th>
<th>Parcels arrived</th>
<th>Action</th>
</tr>
{%for s in shipments%}
<tr class="{{s.status_label_class}}">
<td>{{s.sponsor|default:"Conference organizers"}}</td>
<td>{{s.addresstoken}}</td>
<td>{{s.description}}</td>
<td>{{s.address.title}}</td>
<td>{{s.sent_at|default:"Not sent"}}</td>
<td>{%if s.sent_parcels%}{{s.sent_parcels}}{%else%}?{%endif%}</td>
<td>{{s.arrived_at|default:""}}</td>
<td>{%if s.arrived_at%}{{s.arrived_parcels}}{%endif%}</td>
<td>
<div class="btn-group">
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Edit shipment <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li role="presentation"><a href="/events/sponsor/shipments/{{s.address.token}}/{{s.addresstoken}}/">Edit as receiver</a></li>
<li role="presentation"><a href="{%if s.sponsor%}/events/sponsor/{{s.sponsor.id}}/{%endif%}shipments/{{s.addresstoken}}/">Edit as sender</a></li>
</ul>
</div>
</td>
</tr>
{%endfor%}
</table>
<a class="btn btn-primary" href="shipments/new/">Register new shipment</a>
{%endif%}
{%if additionalcontracts%}
<h2>Additional contracts</h2>
<p>
Additional contracts are <i>sent</i> (and in the case of manual contracts, marked as signed) on the individual sponsor page.
</p>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Sponsor</th>
<th>Subject</th>
<th>Contract name</th>
<th>Type</th>
<th>Sponsor signed</th>
<th>{{conference.contractsendername}} signed</th>
</tr>
</thead>
<tbody>
{% for ac in additionalcontracts%}
<tr>
<td><a href="{{ac.sponsor.id}}/">{{ac.sponsor.name}}</a></td>
<td>{{ac.subject}}</td>
<td>{{ac.contract.contractname}}</td>
<td>{%if ac.digitalcontract%}Digital{%else%}Manual{%endif%}</td>
<td>{{ac.sponsorsigned|default:""}}</td>
<td>{{ac.completed|default:""}}</td>
</td>
</tr>
{%endfor%}
</tbody>
</table>
{%endif%}
{%if eu_vat and user.is_superuser %}
<h2>VAT testing</h2>
<p>
Paste a VAT number to run a test on it, the same way that the sponsor
signup form would do.
</p>
<form method="post" action="testvat/"> {% csrf_token %}
<input type="text" name="vatnumber" placeholder="VAT number">
<input class="btn btn-default" type="submit" value="Validate">
</form>
{%endif%}
<h2>Reports</h2>
<div class="row">
<div class="col-md-3 col-sm-6 col-xs-12 buttonrow"><a class="btn btn-default btn-block" href="benefitreports/">Benefit reports</a></div>
</div>
<h2>Downloads</h2>
<div class="row">
{%if downloads.image %} <div class="col-md-3 col-sm-6 col-xs-12 buttonrow"><a class="btn btn-default btn-block" href="benefitdownload/image/">Download images</a></div>{% endif %}
{%if downloads.file %} <div class="col-md-3 col-sm-6 col-xs-12 buttonrow"><a class="btn btn-default btn-block" href="benefitdownload/file/">Download files</a></div>{% endif %}
</div>
<h2>Metadata</h2>
<div class="row">
<div class="col-md-3 col-sm-6 col-xs-12 buttonrow"><a class="btn btn-default btn-block" href="levels/">Sponsorship levels</a></div>
<div class="col-md-3 col-sm-6 col-xs-12 buttonrow"><a class="btn btn-default btn-block" href="contracts/">Sponsorship contracts</a></div>
<div class="col-md-3 col-sm-6 col-xs-12 buttonrow"><a class="btn btn-default btn-block" href="addresses/">Shipment addresses</a></div>
</div>
{%endblock%}
|