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 staticfiles %}
|
||||||
{% load rowerfilters %}
|
{% load rowerfilters %}
|
||||||
|
|
||||||
@@ -8,21 +8,32 @@
|
|||||||
{% include "monitorjobs.html" %}
|
{% include "monitorjobs.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block main %}
|
||||||
|
|
||||||
<div class="grid_12 alpha">
|
|
||||||
|
|
||||||
<h1>{{ race.name }}</h1>
|
<h1>{{ race.name }}</h1>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="grid_12 alpha">
|
<ul class="main-content">
|
||||||
<div class="grid_8 alpha">
|
<li class="grid_2">
|
||||||
<div id="raceinfo">
|
|
||||||
<h2>Race Information</h2>
|
|
||||||
<p>
|
<p>
|
||||||
<table class="listtable shortpadded" width="80%">
|
<h2>Course</h2>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{{ coursediv|safe }}
|
||||||
|
|
||||||
|
{{ coursescript|safe }}
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
<li class="grid_2">
|
||||||
|
<div id="raceinfo">
|
||||||
|
<p>
|
||||||
|
<h2>Race Information</h2>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<table class="listtable shortpadded" width="100%">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Course</th><td>{{ race.course }}</td>
|
<th>Course</th><td>{{ race.course }}</td>
|
||||||
@@ -72,29 +83,50 @@
|
|||||||
<p>
|
<p>
|
||||||
{% for button in buttons %}
|
{% for button in buttons %}
|
||||||
{% if button == 'registerbutton' %}
|
{% if button == 'registerbutton' %}
|
||||||
<a href="/rowers/virtualevent/{{ race.id }}/register" class="button gray small grid_2">Register</a>
|
<p>
|
||||||
{% endif %}
|
<a href="/rowers/virtualevent/{{ race.id }}/register"
|
||||||
{% if button == 'submitbutton' %}
|
class="blue button">Register</a>
|
||||||
<a href="/rowers/virtualevent/{{ race.id }}/submit" class="button gray small grid_2">Submit Result</a>
|
|
||||||
{% endif %}
|
|
||||||
{% if button == 'resubmitbutton' %}
|
|
||||||
<a href="/rowers/virtualevent/{{ race.id }}/submit" class="button gray small grid_2">Submit New Result</a>
|
|
||||||
{% endif %}
|
|
||||||
{% if button == 'withdrawbutton' %}
|
|
||||||
<a href="/rowers/virtualevent/{{ race.id }}/withdraw" class="button gray small grid_2">Withdraw</a>
|
|
||||||
{% endif %}
|
|
||||||
{% if button == 'adddisciplinebutton' %}
|
|
||||||
<a href="/rowers/virtualevent/{{ race.id }}/adddiscipline" class="button gray small grid_2">Register New Boat</a>
|
|
||||||
{% endif %}
|
|
||||||
{% if button == 'editbutton' %}
|
|
||||||
<a href="/rowers/virtualevent/{{ race.id }}/edit" class="button gray small grid_2">Edit Race</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if button == 'submitbutton' %}
|
||||||
|
<a href="/rowers/virtualevent/{{ race.id }}/submit" class="blue button">Submit Result</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if button == 'resubmitbutton' %}
|
||||||
|
<p>
|
||||||
|
<a href="/rowers/virtualevent/{{ race.id }}/submit"
|
||||||
|
class="blue button">Submit New Result</a>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if button == 'withdrawbutton' %}
|
||||||
|
<p>
|
||||||
|
<a href="/rowers/virtualevent/{{ race.id }}/withdraw"
|
||||||
|
class="blue button">Withdraw</a>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if button == 'adddisciplinebutton' %}
|
||||||
|
<p>
|
||||||
|
<a href="/rowers/virtualevent/{{ race.id }}/adddiscipline"
|
||||||
|
class="blue button">
|
||||||
|
Register New Boat
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if button == 'editbutton' %}
|
||||||
|
<p>
|
||||||
|
<a href="/rowers/virtualevent/{{ race.id }}/edit"
|
||||||
|
class="blue button">Edit Race
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="grid_2">
|
||||||
<div id="results">
|
<div id="results">
|
||||||
|
<p>
|
||||||
<h2>Results</h2>
|
<h2>Results</h2>
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{% if results or dns %}
|
{% if results or dns %}
|
||||||
<table class="listtable shortpadded" width="100%">
|
<table class="listtable shortpadded" width="100%">
|
||||||
@@ -153,10 +185,30 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</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">
|
<div id="registered">
|
||||||
{% if records %}
|
{% if records %}
|
||||||
<h2>Registered Competitors</h2>
|
<h2>Registered Competitors</h2>
|
||||||
<table class="listtable shortpadded" width="80%">
|
<table class="listtable shortpadded" width="100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
@@ -188,8 +240,12 @@
|
|||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</li>
|
||||||
|
<li class="grid_4">
|
||||||
<div id="rules">
|
<div id="rules">
|
||||||
|
<p>
|
||||||
<h2>Rules</h2>
|
<h2>Rules</h2>
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Virtual races are intended as an informal way to add a
|
Virtual races are intended as an informal way to add a
|
||||||
competitive element to training and as a quick way to set
|
competitive element to training and as a quick way to set
|
||||||
@@ -233,30 +289,11 @@
|
|||||||
safety while participating in a virtual race.
|
safety while participating in a virtual race.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
<div class="grid_4 omega">
|
</ul>
|
||||||
<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>
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block sidebar %}
|
||||||
|
{% include 'menu_racing.html' %}
|
||||||
|
{% endblock %}
|
||||||
|
|||||||
@@ -13762,6 +13762,7 @@ def virtualevent_view(request,id=0):
|
|||||||
'dns':dns,
|
'dns':dns,
|
||||||
'records':records,
|
'records':records,
|
||||||
'form':form,
|
'form':form,
|
||||||
|
'active':'nav-racing',
|
||||||
})
|
})
|
||||||
|
|
||||||
@login_required()
|
@login_required()
|
||||||
|
|||||||
@@ -299,6 +299,19 @@ th.rotate > div > span {
|
|||||||
color: #a9c08c;
|
color: #a9c08c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.blue {
|
||||||
|
color: #fae7e9;
|
||||||
|
border: solid 1px #27aae2;
|
||||||
|
background: #27aae2;
|
||||||
|
}
|
||||||
|
.blue:hover {
|
||||||
|
background: #1c74bb;
|
||||||
|
border: solid 1px #27aae2;
|
||||||
|
}
|
||||||
|
.blue:active {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
font: 1.1em/1.5em sans-serif;
|
font: 1.1em/1.5em sans-serif;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -399,18 +412,6 @@ th.rotate > div > span {
|
|||||||
color: #27aae2;
|
color: #27aae2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blue {
|
|
||||||
color: #fae7e9;
|
|
||||||
border: solid 1px #27aae2;
|
|
||||||
background: #27aae2;
|
|
||||||
}
|
|
||||||
.blue:hover {
|
|
||||||
background: #1c74bb;
|
|
||||||
border: solid 1px #27aae2;
|
|
||||||
}
|
|
||||||
.blue:active {
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rbluetext {
|
.rbluetext {
|
||||||
color: #27aae1;
|
color: #27aae1;
|
||||||
|
|||||||
Reference in New Issue
Block a user