80 lines
3.0 KiB
HTML
80 lines
3.0 KiB
HTML
{% extends "newbase.html" %}
|
|
{% load static %}
|
|
{% load rowerfilters %}
|
|
{% load leaflet_tags %}
|
|
|
|
{% block meta %}
|
|
{% leaflet_js %}
|
|
{% leaflet_css %}
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{% include "monitorjobs.html" %}
|
|
{% endblock %}
|
|
|
|
{% block title %}{{ standard.name }} {% endblock %}
|
|
{% block og_title %}{{ standard.name }} {% endblock %}
|
|
{% block main %}
|
|
|
|
<h1>{{ standard.name }}</h1>
|
|
|
|
<ul class="main-content">
|
|
<li class="grid_2">
|
|
<table class="listtable shortpadded" width="100%">
|
|
<tr>
|
|
<th>Name</th><td>{{ collection.name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Manager</th><td>{{ collection.manager.first_name }} {{ collection.manager.last_name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Notes</th><td>{{ collection.notes|linebreaks }}</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
<li>
|
|
{% if request.user == collection.manager %}
|
|
<p><a href="/rowers/standards/upload/{{ collection.id }}/">Update these Standard Times</a></p>
|
|
<p><a href="/rowers/standards/{{ collection.id }}/deactivate/">Deactivate this standard</a></p>
|
|
{% endif %}
|
|
<p><a href="/rowers/standards/{{ collection.id }}/download/">Download as CSV file</a></p>
|
|
</li>
|
|
<li class="grid_4">
|
|
<h2>Standard Times</h2>
|
|
<table class="listtable shortpadded" width="100%"?
|
|
<tr>
|
|
<th>Name<a href="?order_by=name">▲</a><a href="?order_by=-name">▼</a></th>
|
|
<th>Distance<a href="?order_by=coursedistance">▲</a><a href="?order_by=-coursedistance">▼</a></th>
|
|
<th>Standard Time<a href="?order_by=coursetime">▲</a><a href="?order_by=-coursetime">▼</a></th>
|
|
<th>Boat Class<a href="?order_by=boatclass">▲</a><a href="?order_by=-boatclass">▼</a></th>
|
|
<th>Boat Type<a href="?order_by=boattype">▲</a><a href="?order_by=-boattype">▼</a></th>
|
|
<th>Gender<a href="?order_by=sex">▲</a><a href="?order_by=-sex">▼</a></th>
|
|
<th>Weight Class<a href="?order_by=weightclass">▲</a><a href="?order_by=-weightclass">▼</a></th>
|
|
<th>Adaptive Class<a href="?order_by=adaptiveclass">▲</a><a href="?order_by=-adaptiveclass">▼</a></th>
|
|
<th>Skill Class<a href="?order_by=skillclass">▲</a><a href="?order_by=-skillclass">▼</a></th>
|
|
<th>Minimum<a href="?order_by=agemin">▲</a><a href="?order_by=-agemin">▼</a>/Maximum Age<a href="?order_by=agemax">▲</a><a href="?order_by=-agemax">▼</a></th>
|
|
</tr>
|
|
{% for standard in standards %}
|
|
<tr>
|
|
<td>{{ standard.name }}</td>
|
|
<td>{{ standard.coursedistance }}</td>
|
|
<td>{{ standard.coursetime }}</td>
|
|
<td>{{ standard.boatclass|boatclass }}</td>
|
|
<td>{{ standard.boattype }}</td>
|
|
<td>{{ standard.sex|sex }}</td>
|
|
<td>{{ standard.weightclass|weight }}</td>
|
|
<td>{{ standard.adaptiveclass|adaptive }}</td>
|
|
<td>{{ standard.skillclass }}</td>
|
|
<td>{{ standard.agemin }}/{{ standard.agemax }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
|
|
{% endblock %}
|
|
|
|
{% block sidebar %}
|
|
{% include 'menu_racing.html' %}
|
|
{% endblock %}
|