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

64 lines
2.5 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>
<title>Benachrichtigungen verwalten</title>
</head>
<body>
<py:choose test="">
<py:when test="reminders != None">
<h2>Benachrichtigungen verwalten für $eventname</h2>
<div class="admin-block">
<form method="post" action="">
<table class="listing">
<thead>
<tr><th>ID</th><th>Text</th><th>Versendedatum</th><th>Wurde gesendet</th><th>Löschen</th></tr>
</thead>
<tbody>
<tr py:for="ax, reminder in enumerate(reminders)" class="${ax % 2 and 'odd' or 'even'}">
<td><a href="${req.href.admin('reminder', 'edit', reminder.reminder_id)}">${reminder.reminder_id}</a></td>
<td>${wiki_to_html(context, reminder.text &lt; 30 and reminder.text or reminder.text[:30] + "...")}</td>
<td>${reminder.notify_on}</td>
<td>${reminder.was_send_on}</td>
<td><input type="checkbox" name="sel" value="${reminder.a_id}"/></td>
</tr>
</tbody>
</table>
<p><b>Registrierte Benachrichtigungen: ${len(reminders)}</b></p>
<div class="buttons">
<input type="submit" name="save" value="speichern" />
</div>
</form>
</div>
<div>
<form id="addoption" method="post" action="">
<fieldset>
<legend>Neuer Reminder:</legend>
<table>
<tr class="field">
<th><label for="gp_notify">Datum und Uhrzeit:</label></th>
<td><input id="gp_notify" type="text" name="notify_on" /></td>
</tr>
<tr class="field">
<th><label for="gp_text">Nachricht:</label></th>
<td><textarea id="gp_text" rows="20" cols="100" name="text" /></td>
</tr>
</table>
<p class="help">Erstelle neuen Reminder.</p>
<div class="buttons"><input type="submit" name="add" value="Speichern" /></div>
</fieldset>
</form>
</div>
</py:when>
<py:otherwise>
<h2>Event wählen</h2>
<div><ul><li py:for="e in events"><a href="${req.href('admin/booking/reminder', e.e_id)}">${e.name}</a></li></ul></div>
</py:otherwise>
</py:choose>
</body>
</html>