71 lines
3.0 KiB
HTML
71 lines
3.0 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>Optionen verwalten</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h2>Optionen verwalten</h2>
|
||
|
<form py:if="options" method="post" action="">
|
||
|
<table class="listing">
|
||
|
<thead>
|
||
|
<tr><th>Name</th><th>Beschreibung</th><th>Preis</th><th>Aktiv</th><th>Min Anzahl</th><th>Max Anzahl</th><th>Löschen</th></tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr py:for="idx, op in enumerate(options)"
|
||
|
class="${idx % 2 and 'odd' or 'even'}">
|
||
|
<td><a href="${req.href.admin('booking', 'options', op.ao_id)}">${op.name}</a></td>
|
||
|
<td>${op.description}</td>
|
||
|
<td>${"%.2f" % op.price}</td>
|
||
|
<td><input type="checkbox" name="actives" value="${op.ao_id}" checked="${op.active==1 and 'checked' or None}"/></td>
|
||
|
<td>${op.min_count}</td>
|
||
|
<td>${op.max_count}</td>
|
||
|
<td><input type="checkbox" name="rsel" value="${op.ao_id}"/></td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<div class="buttons">
|
||
|
<input type="submit" name="save" value="speichern" />
|
||
|
</div>
|
||
|
</form>
|
||
|
<form id="addoption" method="post" action="">
|
||
|
<fieldset>
|
||
|
<legend>${option.ao_id and "Editiere Option" or "Neue Option"}:</legend>
|
||
|
<table>
|
||
|
<tr class="field">
|
||
|
<th><label for="gp_subject">Name:</label></th>
|
||
|
<td><input id="gp_subject" type="text" size="40" name="name" value="${option.name}"/></td>
|
||
|
</tr>
|
||
|
<tr class="field">
|
||
|
<th><label for="gp_price">Preis:</label></th>
|
||
|
<td><input id="gp_price" type="text" name="price" value="${option.price}"/></td>
|
||
|
</tr>
|
||
|
<tr class="field">
|
||
|
<th><label for="gp_min_count">Min Anzahl:</label></th>
|
||
|
<td><input id="gp_min_count" type="text" name="min_count" value="${option.min_count}"/></td>
|
||
|
</tr>
|
||
|
<tr class="field">
|
||
|
<th><label for="gp_max_count">Max Anzahl:</label></th>
|
||
|
<td><input id="gp_max_count" type="text" name="max_count" value="${option.max_count}"/></td>
|
||
|
</tr>
|
||
|
<tr class="field">
|
||
|
<th><label for="gp_stock_count">Lagerbestand:</label></th>
|
||
|
<td><input id="gp_stock_count" type="text" name="stock_count" value="${option.stock_count}"/></td>
|
||
|
</tr>
|
||
|
<tr class="field">
|
||
|
<th><label for="gp_desc">Beschreibung:</label></th>
|
||
|
<td><textarea id="gp_desc" rows="10" cols="100" name="desc">${option.description}</textarea></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<div class="buttons">
|
||
|
<input type="submit" name="add" value="Speichern"/>
|
||
|
</div>
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|