Private
Public Access
1
0
Files
rowsandall/rowers/templates/virtualevents.html
2018-04-16 07:36:09 +02:00

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 %}