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

66 lines
1.5 KiB
HTML

{% extends "cvkbrnobase.html" %}
{% load i18n %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}{% trans "Edit Boat" %}{% endblock %}
{% block content %}
<div id="workouts" class="grid_6 alpha">
<div class="grid_2 suffix_4 alpha">
<p>
<a class="button red small" href="/cvkbrno/boats/{{ id }}/deleteconfirm">
{% trans "Delete" %}</a>
</p>
</div>
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<h1>{% trans "Edit Boat" %}</h1>
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
<input class="button green" type="submit" value="{% trans 'Save' %}">
</div>
</form>
</div>
<div id="outings" class="grid_6 omega">
<h1>{% trans "Recent Outings with this boat" %}</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 "Rower" %}</th>
<th>{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
{% for outing in theoutings %}
<tr>
<td>{{ outing.starttime }}</td>
<td>{{ outing.rower.user.first_name }} {{ outing.rower.user.last_name }}</td>
<td><a href="/cvkbrno/outing/{{ outing.id }}">{% trans outing.status %}</a></td>
</tr>
{% endfor %}
<tbody>
</table>
</div>
{% endblock %}