ctdo-trac/TracBooking/tracbooking/templates/admin_attendee_status_edit....

92 lines
4.5 KiB
HTML
Raw Permalink Normal View History

2012-03-31 15:55:42 +00:00
<!DOCTYPE htm
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:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="admin.html" />
<head>
<script type="text/javascript">
$(document).ready(function() {
$('input[name^="count"], input[name="email"]').change(function() {
$(this).closest("form").submit();
});
});
</script>
<title>Anmeldungsstatus f&uuml;r ${event.name}</title>
</head>
<body>
<div id="content" py:with="fee = attendee.calculate_fee()">
<div id="booking-attendee" class="booking-block">
<h2>Anmeldungsdaten von ${attendee.nick}</h2>
<form name="options" uri="#anmeldungsdaten" method="post" mime-type="text/plain" action="">
<table class="properties" cellspacing="10px">
<tr>
<th id="h_author">Nick</th>
<td headers="h_author">${attendee.nick}</td>
</tr>
<tr>
<th id="h_email">Email</th>
<td headers="h_email"><input name="email" size="50" value="${attendee.email}"/></td>
</tr>
<tr>
<th id="h_paid">Bezahlt</th>
<td headers="h_paid">${bool(attendee.has_paid) and "Ja" or "Nein"}</td>
</tr>
</table>
<div class="mybuttons">
<input type="reset" value="Reset"/>
<input py:if="attendee.finished" type="submit" name="download_invoice" value="Abrechnung herunterladen"/>
<input py:if="not attendee.finished" type="submit" name="finish" value="Bestellung abschliessen"/>
<input py:if="attendee.finished" type="submit" name="unfinish" value="Bestellung wieder freischalten"/>
<input py:if="not attendee.finished" type="submit" name="unregister" value="Komplette Bestellung löschen"/>
<input type="submit" name="attendee-save" value="Speichern"/>
</div>
</form>
</div>
<div id='booking-options' class="booking-block">
<py:choose test="">
<py:when test="not attendee.finished">
<h2 id="available-options">Verfügbare Artikel</h2>
<form id="options" name="options" method="post" mime-type="text/plain" action="">
<table cellspacing="0px" cellpadding="0xp">
<tr>
<th>Artikel</th><th>Beschreibung</th><th>Preis in &euro; inkl. MwSt.</th><th>Anzahl</th>
</tr>
<tr py:for="option in event.options">
<td>${option.name}</td>
<td>${wiki_to_html(context, option.description)}</td>
<td id="price">${"%.2f" % option.price}</td>
<td>
<input id="count_${option.ao_id}" type="text" size="5" maxlength="4" name="count_${option.ao_id}" value="${option.count and option.count or 0}"/>
</td>
</tr>
<tr><td colspan="3" align="left"><b>Summe:</b></td><td>&euro; ${fee}</td></tr>
</table>
<div class="mybuttons">
<input type="reset" value="Reset"/>
<input type="submit" name="save" value="Speichern"/>
</div>
</form>
</py:when>
<py:otherwise>
<h2 id="available-options">Bestellte Artikel</h2>
<table cellspacing="0px" cellpadding="0xp">
<tr>
<th>Artikel</th><th>Beschreibung</th><th>Preis in &euro; inkl. MwSt.</th><th>Anzahl</th>
</tr>
<tr py:for="option in event.options">
<td>${option.name}</td>
<td>${wiki_to_html(context, option.description)}</td>
<td id="price">${"%.2f" % option.price}</td>
<td>${option.count and option.count or 0}</td>
</tr>
<tr><td colspan="3" align="left"><b>Summe:</b></td><td>&euro; ${fee}</td></tr>
</table>
</py:otherwise>
</py:choose>
</div>
</div>
</body>
</html>