added virtualevent_view urls.py line 146
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% extends "base.html" %}
|
||||
{% extends "newbase.html" %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
|
||||
@@ -8,21 +8,32 @@
|
||||
{% include "monitorjobs.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="grid_12 alpha">
|
||||
|
||||
<h1>{{ race.name }}</h1>
|
||||
{% block main %}
|
||||
|
||||
|
||||
</div>
|
||||
<h1>{{ race.name }}</h1>
|
||||
|
||||
<div class="grid_12 alpha">
|
||||
<div class="grid_8 alpha">
|
||||
|
||||
|
||||
<ul class="main-content">
|
||||
<li class="grid_2">
|
||||
<p>
|
||||
<h2>Course</h2>
|
||||
</p>
|
||||
<p>
|
||||
{{ coursediv|safe }}
|
||||
|
||||
{{ coursescript|safe }}
|
||||
|
||||
</p>
|
||||
</li>
|
||||
<li class="grid_2">
|
||||
<div id="raceinfo">
|
||||
<h2>Race Information</h2>
|
||||
<p>
|
||||
<table class="listtable shortpadded" width="80%">
|
||||
<h2>Race Information</h2>
|
||||
</p>
|
||||
<p>
|
||||
<table class="listtable shortpadded" width="100%">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Course</th><td>{{ race.course }}</td>
|
||||
@@ -72,29 +83,50 @@
|
||||
<p>
|
||||
{% for button in buttons %}
|
||||
{% if button == 'registerbutton' %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/register" class="button gray small grid_2">Register</a>
|
||||
<p>
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/register"
|
||||
class="blue button">Register</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if button == 'submitbutton' %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/submit" class="button gray small grid_2">Submit Result</a>
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/submit" class="blue button">Submit Result</a>
|
||||
{% endif %}
|
||||
{% if button == 'resubmitbutton' %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/submit" class="button gray small grid_2">Submit New Result</a>
|
||||
<p>
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/submit"
|
||||
class="blue button">Submit New Result</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if button == 'withdrawbutton' %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/withdraw" class="button gray small grid_2">Withdraw</a>
|
||||
<p>
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/withdraw"
|
||||
class="blue button">Withdraw</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if button == 'adddisciplinebutton' %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/adddiscipline" class="button gray small grid_2">Register New Boat</a>
|
||||
<p>
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/adddiscipline"
|
||||
class="blue button">
|
||||
Register New Boat
|
||||
</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if button == 'editbutton' %}
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/edit" class="button gray small grid_2">Edit Race</a>
|
||||
<p>
|
||||
<a href="/rowers/virtualevent/{{ race.id }}/edit"
|
||||
class="blue button">Edit Race
|
||||
</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</li>
|
||||
<li class="grid_2">
|
||||
<div id="results">
|
||||
<h2>Results</h2>
|
||||
<p>
|
||||
<h2>Results</h2>
|
||||
</p>
|
||||
<p>
|
||||
{% if results or dns %}
|
||||
<table class="listtable shortpadded" width="100%">
|
||||
@@ -153,10 +185,30 @@
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
{% if form %}
|
||||
<li class="grid_2">
|
||||
|
||||
<p>
|
||||
<h2>Filter Results</h2>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
<form id="result_filter_form", method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
|
||||
{% csrf_token %}
|
||||
<input class="button green" type="submit" value="Submit">
|
||||
</p>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="grid_2">
|
||||
<div id="registered">
|
||||
{% if records %}
|
||||
<h2>Registered Competitors</h2>
|
||||
<table class="listtable shortpadded" width="80%">
|
||||
<table class="listtable shortpadded" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
@@ -188,8 +240,12 @@
|
||||
</table>
|
||||
{% endif %}
|
||||
</div>
|
||||
</li>
|
||||
<li class="grid_4">
|
||||
<div id="rules">
|
||||
<h2>Rules</h2>
|
||||
<p>
|
||||
<h2>Rules</h2>
|
||||
</p>
|
||||
<p>
|
||||
Virtual races are intended as an informal way to add a
|
||||
competitive element to training and as a quick way to set
|
||||
@@ -233,30 +289,11 @@
|
||||
safety while participating in a virtual race.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid_4 omega">
|
||||
<p>
|
||||
<h2>Course</h2>
|
||||
{{ coursediv|safe }}
|
||||
|
||||
{{ coursescript|safe }}
|
||||
|
||||
</p>
|
||||
|
||||
{% if form %}
|
||||
<p>
|
||||
<h2>Filter Results</h2>
|
||||
|
||||
<form id="result_filter_form", method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
|
||||
{% csrf_token %}
|
||||
<input class="button green" type="submit" value="Submit">
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
{% include 'menu_racing.html' %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user