Private
Public Access
1
0
Files
rowsandall/cvkbrno/templates/cvkbrno_boats_admin.html~
sanderroosendaal 3eed3cc3e7 Uploading files
2016-10-30 17:39:32 +01:00

80 lines
1.7 KiB
HTML

{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Boats Admin" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Boats Admin" %}</h1>
<div id="addboat" class="grid_2 suffix_4 alpha">
<p>
<a class="button green small" href="/cvkbrno/boats/add">{% trans "Add Boat" %}</a>
</p>
</div>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Code" %}</th>
<th>{% trans "Name" %}</th>
<th>{% trans "Status" %}</th>
<th>{% trans "Edit" %}</th>
</tr>
</thead>
<tbody>
{% for boat in theboats %}
<tr>
<td>{{ boat.boatcode }}</td>
<td>{{ boat.boatname }}</td>
<td>{% trans boat.status %}</td>
<td><a href="/cvkbrno/boats/{{ boat.id }}/edit">E</a></td>
</tr>
{% endfor %}
<tbody>
</table>
{% csrf_token %}
</div>
<div id="outings" class="grid_6 omega">
<h1>{% trans "Recent Outings" %}</h1>
<div class="grid_2 suffix_4 alpha">
<p>
&nbsp;
</p>
</div>
<table class="listtable" width=100%>
<thead>
<tr>
<th>{% trans "Date" %}</th>
<th>{% trans "Name" %}</th>
<th>{% trans "Rower" %}</th>
<th>{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
{% for outing in theoutings %}
<tr>
<td>{{ outing.starttime }}</td>
<td>{{ outing.boat.boatname }}</td>
<td>{{ outing.rower.user.first_name }} {{ outing.rower.user.last_name }}</td>
<td>{% trans outing.status %}</td>
</tr>
{% endfor %}
<tbody>
</table>
</div>
{% endblock %}