163 lines
8.5 KiB
HTML
163 lines
8.5 KiB
HTML
|
<!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="layout.html" />
|
||
|
<head>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function() {
|
||
|
$('input[name^="count"], input[name="email"]').change(function() {
|
||
|
$(this).closest("form").submit();
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
<title>Deine Artikel für ${event.name}</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="content" py:with="fee = attendee.calculate_fee()">
|
||
|
<div id="event_details" class="booking-block">
|
||
|
<h1>${event.name}</h1>
|
||
|
<div>${wiki_to_html(context, event.description, escape_newlines=preserve_newlines)}</div>
|
||
|
<table class="properties" cellspacing="10px">
|
||
|
<!--<py:if test="event.edit_deadline < now or register_deadline < now"> -->
|
||
|
<!--<tr>
|
||
|
<th id="timeframe">Bestellung Zeitraum:</th>
|
||
|
<td headers="timeframe">${event.time_begin.strftime('%d.%m.%Y %H:%M')} - ${event.time_end.strftime('%d.%m.%Y %H:%M')}</td>
|
||
|
</tr>-->
|
||
|
<!--<tr>
|
||
|
<th id="register_deadline" py:if="event.register_deadline > now">Registrierungs-Zeitraum:</th>
|
||
|
<td headers="register_deadline">${event.register_deadline.strftime('%d.%m.%Y %H:%M')} Uhr.</td>
|
||
|
</tr>-->
|
||
|
<tr>
|
||
|
<th id="edit-deadline">Bestellungen können verändert werden bis zum:</th>
|
||
|
<td headers="edit-deadline" id="edit-deadline-data">${event.edit_deadline.strftime('%d.%m.%Y %H:%M')} Uhr.</td>
|
||
|
</tr>
|
||
|
<!--</py:if> -->
|
||
|
<tr>
|
||
|
<th id="payment-deadline">Geld bitte auf unten angebenes Konto einzahlen bis zum:</th>
|
||
|
<td headers="payment-deadline" id="payment-deadline-data">${event.payment_deadline.strftime('%d.%m.%Y %H:%M')} Uhr.</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="2">Der Liefertermin wird per Mail bekannt gegeben, sofern Du eine Mailaddresse angegeben hast.</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="2">Du kannst Deine Registrierung unten komplett löschen.</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="2">Wenn Du javascript angeschaltet hast, werden Änderungen beim Verlassen des Eingabefeldes automatisch gespeichert.
|
||
|
Wenn Du javascript blockiert hast, musst Du nach Änderungen manuell auf den Speichern Button klicken.</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="2">Wenn Du mit Deiner Bestellung zufrieden bist, und die Bestellung abschliessen möchtest, dann drücke bitte
|
||
|
auf Abschliessen. Dann findest Du unter "Deine Daten" einen Link, mit dem Du eine Zusammenfassung Deiner Bestellung und alle relevanten
|
||
|
Daten zum bequemen Bezahlen Deines Anteiles als pdf herunterladen kannst.</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div id="booking-attendee" class="booking-block">
|
||
|
<h1 id="anmeldungsdaten">Deine Daten</h1>
|
||
|
<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="not attendee.finished" type="submit" name="unregister" value="Komplette Bestellung löschen"/>
|
||
|
<input type="submit" name="attendee-save" value="Speichern"/>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
<div py:if="attendee.finished" id="booking-bank" class="booking-block">
|
||
|
<h1 id="kontodaten">Bezahlvorgang per Überweisung</h1>
|
||
|
<table class="properties" cellspacing="10px">
|
||
|
<tr>
|
||
|
<th id="name">Kontoinhaber</th>
|
||
|
<td headers="name">${account_data.account_owner}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th id="konto">Konto</th>
|
||
|
<td headers="konto">${account_data.account_no}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th id="blz">Blz</th>
|
||
|
<td headers="blz">${account_data.bank_no}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th id="betrag">Betrag</th>
|
||
|
<td headers="betrag">€ ${fee}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th id="bank">Bank</th>
|
||
|
<td headers="bank">${account_data.bank_name}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th id="h_extid">1. Überweisungszweck</th>
|
||
|
<td headers="h_extid">${account_data.first_reason}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th id="h_extid">2. Überweisungszweck</th>
|
||
|
<td headers="h_extid">${("%X" % attendee.a_id).rjust(4, "0")}</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div id='booking-options' class="booking-block">
|
||
|
<py:choose test="">
|
||
|
<py:when test="not attendee.finished">
|
||
|
<h1 id="available-options">Verfügbare Artikel</h1>
|
||
|
<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 € 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>€ ${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>
|
||
|
<h1 id="available-options">Bestellte Artikel</h1>
|
||
|
<table cellspacing="0px" cellpadding="0xp">
|
||
|
<tr>
|
||
|
<th>Artikel</th><th>Beschreibung</th><th>Preis in € 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>€ ${fee}</td></tr>
|
||
|
</table>
|
||
|
</py:otherwise>
|
||
|
</py:choose>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|