81 lines
1.8 KiB
HTML
81 lines
1.8 KiB
HTML
{% extends "cvkbrnobase.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
<div class="grid_12 alpha">
|
|
{% if form.errors %}
|
|
<p>{% trans "Your username and password didn't match. Please try again." %}</p>
|
|
{% endif %}
|
|
|
|
<form method="post" action="">
|
|
{% csrf_token %}
|
|
{% if next %}
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
|
{% endif %}
|
|
<table align="center">
|
|
<tr><th>
|
|
<label class="control-label" for="username">{% trans "Username" %}</label>
|
|
</th>
|
|
<td>
|
|
<input type="text" id="username" name="username" placeholder="Username">
|
|
</td></tr>
|
|
<tr><th>
|
|
<label class="control-label" for="password">
|
|
{% trans "Password" %}</label>
|
|
</th>
|
|
<td>
|
|
<input type="password" name="password" id="password" placeholder="Password">
|
|
</td></tr>
|
|
<tr>
|
|
<td> </p>
|
|
<td>
|
|
<button type="submit" class="btn">{% trans "Login" %}</button>
|
|
</td></tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="grid_6 alpha">
|
|
<h1>{% trans "Boats Out" %}</h1>
|
|
|
|
<table class="listtable" width=100%>
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans "Boat" %}</th>
|
|
<th>{% trans "Departure time" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for outing in activeoutings %}
|
|
<tr>
|
|
<td> {{ outing.boat.boatname }} </td>
|
|
<td> {{ outing.starttime }} </td>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="grid_6 omega">
|
|
<h1>{% trans "Reservations" %}</h1>
|
|
|
|
<table class="listtable" width=100%>
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans "Boat" %}</th>
|
|
<th>{% trans "Departure time" %}</th>
|
|
<th>{% trans "Reserved by" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for res in reservations %}
|
|
<tr>
|
|
<td> {{ res.boat.boatname }} </td>
|
|
<td> {{ res.starttime }} </td>
|
|
<td> {{ res.rower.user.first_name }} {{ res.rower.user.last_name }} </td>
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
</table>
|
|
{% endblock %} |