53 lines
2.7 KiB
HTML
53 lines
2.7 KiB
HTML
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
xmlns:py="http://genshi.edgewall.org/">
|
|
<xi:include href="admin.html" />
|
|
<head>
|
|
<title>Teilnehmer verwalten für ${event.name}</title>
|
|
</head>
|
|
<body>
|
|
<py:choose test="">
|
|
<py:when test="event != None">
|
|
<h2>Teilnehmer verwalten für ${event.name}</h2>
|
|
<form method="post" action="">
|
|
<table class="listing">
|
|
<thead>
|
|
<tr><th>Nick</th><th>Email</th><th>Verwendungszweck 1</th><th>Verwendungszweck 2</th><th>Soll-Betrag</th><th>Eingezahlter Betrag</th><th>Bezahlt</th><th>Registrierungsdatum</th><th>Abgeschlossen</th><th>Löschen</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr py:for="ax, attendee in enumerate(attendees)"
|
|
class="${ax % 2 and 'odd' or 'even'}">
|
|
<td><a href="${req.href('admin/booking/attendees', event.e_id, attendee.a_id)}">${attendee.nick}</a></td>
|
|
<td>${attendee.email}</td>
|
|
<td></td>
|
|
<td>${("%X" % attendee.a_id).rjust(4, "0")}</td>
|
|
<td>${"%s" % attendee.calculate_fee()}</td>
|
|
<td><input type="text" name="actual_amount_${attendee.a_id}" value="${attendee.actual_amount and attendee.actual_amount or None}"/></td>
|
|
<td><input type="checkbox" name="has_paid" value="${attendee.a_id}" checked="${attendee.has_paid and 'checked' or None}"/></td>
|
|
<td>${attendee.time}</td>
|
|
<td><input type="checkbox" name="finished" disabled="disabled" value="${attendee.a_id}" checked="${attendee.finished and 'checked' or None}"/></td>
|
|
<td><input type="checkbox" name="sel" value="${attendee.a_id}"/></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p><b>Registered Attendees: ${len(attendees)}</b></p>
|
|
<div class="buttons">
|
|
<input type="submit" name="save" value="Speichern" />
|
|
<input type="submit" name="remove_empty" value="Lösche Kunden ohne Bestellungen" />
|
|
<input type="submit" name="download_report" value="download Bestellungsreport" />
|
|
</div>
|
|
</form>
|
|
</py:when>
|
|
<py:otherwise>
|
|
<h2>Bestellung auswählen</h2>
|
|
<div><ul><li py:for="e in events"><a href="${req.href('admin/booking/attendees', e.e_id)}">${e.name}</a></li></ul></div>
|
|
</py:otherwise>
|
|
</py:choose>
|
|
<p class="help">
|
|
</p>
|
|
</body>
|
|
</html>
|