60 lines
1.2 KiB
HTML
60 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load staticfiles %}
|
|
{% load rowerfilters %}
|
|
|
|
{% block title %}Rowsandall Virtual Racing{% endblock %}
|
|
|
|
{% block scripts %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="grid_12 alpha">
|
|
<div class="grid_2 alpha suffix_10">
|
|
<p>
|
|
<a class="button green small" href="/rowers/virtualevent/create">Add Race</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid_12 alpha">
|
|
<form enctype="multipart/form-data" method="post">
|
|
<div class="grid_8 alpha">
|
|
{{ form.as_table }}
|
|
{% csrf_token %}
|
|
</div>
|
|
<div class="grid_2">
|
|
<input name='form' class='button green' type='submit' value="Submit">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="grid_12 alpha">
|
|
<p>
|
|
<table width="100%" class="listtable shortpadded">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Event</th>
|
|
<th>Country</th>
|
|
<th>Course</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for race in races %}
|
|
<tr>
|
|
<td>{{ race.startdate }}</td>
|
|
<td><a href="/rowers/virtualevent/{{ race.id }}">{{ race.name }}</a></td>
|
|
<td>{{ race.course.country }}</td>
|
|
<td>{{ race.course.name }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|