standards_view and standard_view
This commit is contained in:
84
rowers/templates/list_standards.html
Normal file
84
rowers/templates/list_standards.html
Normal file
@@ -0,0 +1,84 @@
|
||||
{% extends "newbase.html" %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
|
||||
{% block title %}Rowsandall Course Standards List{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<style>
|
||||
#mypointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<h1>Standards Collections</h1>
|
||||
|
||||
<ul class="main-content">
|
||||
<li class="grid_3">
|
||||
{% if standards %}
|
||||
<p>
|
||||
<table width="100%" class="listtable shortpadded">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> Name</th>
|
||||
<th> Maintainer</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for standard in standards %}
|
||||
<tr>
|
||||
<td>{{ standard.name }} </td>
|
||||
<td>{{ standard.manager.first_name }} {{ standard.manager.last_name }}</td>
|
||||
<td>
|
||||
{% if standard.manager == user %}
|
||||
<a href="/rowers/standards/{{ standard.id }}/">{{ standard.name }}</a>
|
||||
{% else %}
|
||||
<a href="/rowers/standards/{{ standard.id }}/">{{ standard.name }}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</p>
|
||||
{% else %}
|
||||
<p> No standards found </p>
|
||||
{% endif %}
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
<form id="searchform" action="/rowers/list-standards/"
|
||||
method="get" accept-charset="utf-8">
|
||||
{{ searchform }}
|
||||
<input type="submit" value="GO"></input>
|
||||
</form>
|
||||
</p>
|
||||
<p>
|
||||
<a href="/rowers/standards/upload/">Add Standards</a>
|
||||
</p>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="grid_4">
|
||||
<h2>How-to</h2>
|
||||
<p>
|
||||
A set of Course Standard Times allows you to calculate a score for
|
||||
each participant on how well they have done against the course
|
||||
standard time for their category. This allows for comparison
|
||||
and competition between the different categories.
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
{% include 'menu_racing.html' %}
|
||||
{% endblock %}
|
||||
@@ -131,6 +131,11 @@
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li id="standards">
|
||||
<a href="/rowers/list-standards/">
|
||||
<i class="fas fa-award fa-fw"></i> Course Time Standards
|
||||
</a>
|
||||
</li>
|
||||
</ul> <!-- cd-accordion-menu -->
|
||||
|
||||
{% include 'menuscript.html' %}
|
||||
|
||||
72
rowers/templates/standard_view.html
Normal file
72
rowers/templates/standard_view.html
Normal file
@@ -0,0 +1,72 @@
|
||||
{% extends "newbase.html" %}
|
||||
{% load staticfiles %}
|
||||
{% 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 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 }}</td>
|
||||
<td>{{ standard.boattype }}</td>
|
||||
<td>{{ standard.sex }}</td>
|
||||
<td>{{ standard.weightclass }}</td>
|
||||
<td>{{ standard.adaptiveclass }}</td>
|
||||
<td>{{ standard.skillclass }}</td>
|
||||
<td>{{ standard.agemin }}/{{ standard.agemax }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
{% include 'menu_racing.html' %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user