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

70 lines
2.3 KiB
HTML
Raw Permalink 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>$label_plural</title>
</head>
<body>
<h2>Manage RendezVousTypes</h2>
<form id="addsubj" class="addoption" method="post" action="">
<fieldset>
<legend>Verknüpfe Option mit Event:</legend>
<table>
<tr class="field">
<th><label for="event">Option:</label></th>
<td><select id="option" name="option">
<option py:for="option in sorted(options)">${option.name}</option>
</select>
</td>
</tr>
<tr class="field">
<th><label for="event">Event:</label></th>
<td><select id="event" name="event">
<option py:for="event in sorted(events)">${event.name}</option>
</select>
</td>
</tr>
</table>
<p class="help">
Grant permission to a RendezVousType.
</p>
<div class="buttons">
<input type="submit" name="add" value=" Add " />
</div>
</fieldset>
</form>
<form method="post" action="">
<table class="listing" id="permlist">
<thead>
<tr><th>Event</th><th>Default</th><th>Optionen</th></tr>
</thead>
<tbody>
<tr py:for="idx, event in enumerate(events)" py:if="event.options"
class="${idx % 2 and 'odd' or 'even'}">
<td>${event.name}</td>
<td><input type="radio" name="default" value="${event.e_id}" checked=""/></td>
<td>
<div py:for="option in event.options">
<input type="checkbox" id="${event.e_id}:${option.ao_id}" name="sel" value="${event.e_id}:${option.ao_id}"/>
<label for="${event.e_id}:${option.ao_id}">${option.name}</label>
</div>
</td>
</tr>
</tbody>
</table>
<div class="buttons">
<input type="submit" name="save" value="Save Changes" />
</div>
</form>
<p class="help">
</p>
</body>
</html>