ctdo-trac/TracBooking/tracbooking/templates/admin_events.html

110 lines
6.0 KiB
HTML
Raw Normal View History

2012-03-31 15:55:42 +00:00
<!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>
<script type="text/javascript">
/* <![CDATA[ */
jQuery(document).ready(function($) {
$("#gp_date_begin").datepicker({"dateFormat" : "dd.mm.yy"});
$("#gp_date_end").datepicker({"dateFormat" : "dd.mm.yy"});
$("#gp_edit_deadline").datepicker({"dateFormat" : "dd.mm.yy"});
$("#gp_payment_deadline").datepicker({"dateFormat" : "dd.mm.yy"});
});
/* ]]> */
</script>
<title>Events verwalten</title>
</head>
<body>
<h2>Events verwalten</h2>
<form method="post" action="">
<table class="listing">
<thead>
<tr><th>Name</th><th>Von</th><th>Bis</th><th>Löschen</th><th>Duplizieren</th><th>Abschliessen</th></tr>
</thead>
<tbody>
<tr py:for="idx, event in enumerate(events)"
class="${idx % 2 and 'odd' or 'even'}">
<td><a href="${req.href.admin('booking', 'events', event.e_id)}">${event.name}</a></td>
<td><a href="${req.href.admin('booking', 'events', event.e_id)}">${event.time_begin}</a></td>
<td><a href="${req.href.admin('booking', 'events', event.e_id)}">${event.time_end}</a></td>
<td><input type="checkbox" name="rsel" value="${event.e_id}"/></td>
<td><input type="radio" name="copy" value="${event.e_id}"/></td>
<td><input type="radio" name="finish" value="${event.e_id}"/></td>
</tr>
</tbody>
</table>
<div class="buttons">
<input type="submit" name="save" value="Speichern" />
</div>
</form>
<form id="addoption" method="post" action="">
<input py:if="event" type="hidden" name="e_id" value="${event.e_id}"/>
<fieldset>
<fieldset>
<legend>${event and "Event editieren" or "Neues Event"}</legend>
<table>
<tr class="field">
<th><label for="gp_subject">Name:</label></th>
<td ><input id="gp_subject" type="text" name="name" value="${event and event.name or None}"/></td>
</tr>
<tr class="field">
<th><label for="gp_date_begin">Datum Begin:</label></th>
<td><input id="gp_date_begin" type="text" name="date_begin" size="10" maxlength="10" value="${event and event.time_begin.strftime('%d.%m.%Y') or None}"/>
<input id="gp_time_begin" type="text" name="time_begin" size="5" maxlength="5" value="${event and event.time_begin.strftime('%H:%M') or None}"/></td>
</tr>
<tr class="field">
<th><label for="gp_date_end">Datum Ende:</label></th>
<td><input id="gp_date_end" type="text" name="date_end" size="10" maxlength="10" value="${event and event.time_end.strftime('%d.%m.%Y') or None}"/>
<input type="text" name="time_end" size="5" maxlength="5" value="${event and event.time_end.strftime('%H:%M') or None}"/></td>
</tr>
<tr class="field">
<th><label for="gp_edit_deadline">Edit Deadline:</label></th>
<td><input id="gp_edit_deadline" type="text" size="10" maxlength="10" name="edit_deadline_date" value="${event and event.edit_deadline.strftime('%d.%m.%Y') or None}"/>
<input type="text" name="edit_deadline_time" size="5" maxlength="5" value="${event and event.edit_deadline.strftime('%H:%M') or None}"/></td>
</tr>
<tr class="field">
<th><label for="gp_payment_deadline">Bezahl Deadline:</label></th>
<td><input id="gp_payment_deadline" type="text" size="10" maxlength="10" name="payment_deadline_date" value="${event and event.payment_deadline.strftime('%d.%m.%Y') or None}"/>
<input type="text" name="payment_deadline_time" size="5" maxlength="5" value="${event and event.payment_deadline.strftime('%H:%M') or None}"/></td>
</tr>
<tr class="field">
<th><label for="gp_desc">Beschreibung:</label></th>
<td><textarea id="gp_desc" rows="20" cols="80" name="description">${event and event.description or None}</textarea></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>${event_account and "Konto editieren" or "Neues Konto"}</legend>
<table>
<tr class="field">
<th><label for="gp_account_owner">Kontoinhaber:</label></th>
<td><input id="gp_account_owner" type="text" name="account_owner" value="${event_account and event_account.account_owner or 'Chaostreff Dortmund'}"/></td>
</tr>
<tr class="field">
<th><label for="gp_account_no">Kontonummer:</label></th>
<td><input id="gp_account_no" type="text" name="account_no" value="${event_account and event_account.account_no or '4009368600'}"/></td>
</tr>
<tr class="field">
<th><label for="gp_bank_no">Geldinstitut:</label></th>
<td><input id="gp_bank_no" type="text" name="bank_name" value="${event_account and event_account.bank_name or 'GLS-Bank'}"/></td>
</tr>
<tr class="field">
<th><label for="gp_bank_no">BLZ:</label></th>
<td><input id="gp_bank_no" type="text" name="bank_no" value="${event_account and event_account.bank_no or '43060967'}"/></td>
</tr>
<tr class="field">
<th><label for="gp_first_reason">1. Überweisungszweck:</label></th>
<td><input id="gp_first_reason" type="text" name="first_reason" value="${event_account and event_account.first_reason or 'Mate'}"/></td>
</tr>
</table>
</fieldset>
<div class="buttons"><input type="submit" name="add" value="Speichern" /></div>
</fieldset>
</form>
</body>
</html>