40 lines
1.6 KiB
HTML
40 lines
1.6 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>Bestellungen einsehen für ${eventname}</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<py:choose test="">
|
||
|
<py:when test="items != None">
|
||
|
<div id='rendezvous-main'>
|
||
|
<table class="listing">
|
||
|
<thead>
|
||
|
<tr><th>Name</th><th>Einzelpreis €</th><th>Anzahl</th><th>Zusammen</th></tr>
|
||
|
</thead>
|
||
|
<tr py:for="ix, item in enumerate(items)" class="${ix%2 and 'even' or 'odd'}">
|
||
|
<td>${item[1]}</td><td>${"%.2f" % float(item[2])}</td><td>${item[3]}</td><td>${"%.2f" % item[4]}</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<p><b>Gesamt Preis: ${sum([item[4] for item in items])}</b></p>
|
||
|
<form method="post" action="">
|
||
|
<div class="buttons">
|
||
|
<input type="submit" name="remove_empty" value="Lösche Kunden ohne Bestellungen" />
|
||
|
<input type="submit" name="download_report" value="download report" />
|
||
|
</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/einkauf', e.e_id)}">${e.name}</a></li></ul></div>
|
||
|
</py:otherwise>
|
||
|
</py:choose>
|
||
|
</body>
|
||
|
</html>
|
||
|
|