list courses (line 155 urls.py)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "newbase.html" %}
|
||||||
{% load staticfiles %}
|
{% load staticfiles %}
|
||||||
{% load rowerfilters %}
|
{% load rowerfilters %}
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block main %}
|
||||||
<style>
|
<style>
|
||||||
#mypointer {
|
#mypointer {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -17,12 +17,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="grid_12">
|
<h1>Courses</h1>
|
||||||
|
|
||||||
<div id="courses_table" class="grid_8 alpha">
|
<ul class="main-content">
|
||||||
<h1>Courses</h1>
|
<li class="grid_3">
|
||||||
|
|
||||||
{% if courses %}
|
{% if courses %}
|
||||||
|
<p>
|
||||||
<table width="100%" class="listtable shortpadded">
|
<table width="100%" class="listtable shortpadded">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -51,100 +51,90 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p> No courses found </p>
|
<p> No courses found </p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</li>
|
||||||
<div class="grid_6 alpha">
|
<li>
|
||||||
<div class="grid_2 prefix_1 alpha">
|
<p>
|
||||||
<a class="button small green" href="/rowers/courses/upload">Add Courses</a>
|
<form id="searchform" action="/rowers/list-courses/"
|
||||||
</div>
|
method="get" accept-charset="utf-8">
|
||||||
<p> </p>
|
|
||||||
<form id="searchform" action="/rowers/list-courses/"
|
|
||||||
method="get" accept-charset="utf-8">
|
|
||||||
<div class="grid_3 prefix_1 alpha">
|
|
||||||
<input class="searchfield" id="searchbox" name="q" type="text" placeholder="Search">
|
<input class="searchfield" id="searchbox" name="q" type="text" placeholder="Search">
|
||||||
</div>
|
|
||||||
<div class="grid_1 omega">
|
|
||||||
<button class="button blue small" type="submit">
|
<button class="button blue small" type="submit">
|
||||||
Search
|
Search
|
||||||
</button>
|
</button>
|
||||||
|
</form>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a class="button small green" href="/rowers/courses/upload">Add Courses</a>
|
||||||
|
</p>
|
||||||
|
{% if announcements %}
|
||||||
|
<h3>What's New?</h3>
|
||||||
|
{% for a in announcements %}
|
||||||
|
<div class="site-announcement-box">
|
||||||
|
<div class="site-announcement">
|
||||||
|
<i>{{ a.created }}:</i>
|
||||||
|
{{ a.announcement|urlize }}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="grid_2 omega">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="grid_4 omega">
|
|
||||||
<div class="grid_4" id="announcements">
|
|
||||||
{% if announcements %}
|
|
||||||
<h3>What's New?</h3>
|
|
||||||
{% for a in announcements %}
|
|
||||||
<div class="site-announcement-box">
|
|
||||||
<div class="site-announcement">
|
|
||||||
<i>{{ a.created }}:</i>
|
|
||||||
{{ a.announcement|urlize }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
<p> </p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="grid_4" id="about">
|
{% endfor %}
|
||||||
<h2>How-to</h2>
|
<p> </p>
|
||||||
<p>
|
{% endif %}
|
||||||
Courses allow you to mark the start & finish lines of your
|
|
||||||
test pieces and measure the time spent on the course (as opposed
|
</li>
|
||||||
to the total duration of a workout). This allows you to row and rank
|
|
||||||
marked courses.
|
|
||||||
|
|
||||||
To create a course, you use <a href="earth.google.com">Google Earth</a>
|
<li class="grid_4">
|
||||||
to mark the start and finish lines using polygons. The process is identical
|
<h2>How-to</h2>
|
||||||
to creating custom courses for the
|
<p>
|
||||||
<a href="http://performancephones.com/crewnerd/">CrewNerd</a>
|
Courses allow you to mark the start & finish lines of your
|
||||||
app.
|
test pieces and measure the time spent on the course (as opposed
|
||||||
|
to the total duration of a workout). This allows you to row and rank
|
||||||
|
marked courses.
|
||||||
|
|
||||||
|
To create a course, you use <a href="earth.google.com">Google Earth</a>
|
||||||
|
to mark the start and finish lines using polygons. The process is identical
|
||||||
|
to creating custom courses for the
|
||||||
|
<a href="http://performancephones.com/crewnerd/">CrewNerd</a>
|
||||||
|
app.
|
||||||
|
|
||||||
|
</p>
|
||||||
|
|
||||||
</p>
|
<p>CrewNerd has published a nice video tutorial of the process.
|
||||||
|
<a href="https://youtu.be/whhWFmMJbhM">Click here</a> to see the video. The part
|
||||||
|
we're interested in starts at 2:05.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
In addition to start and finish areas, on rowsandall.com you can add additional
|
||||||
|
polygons to mark areas that you must pass (in that order). This allows for
|
||||||
|
courses with turns around buoys, respecting buoy lines, or respecting traffic
|
||||||
|
patterns on rivers and lakes.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<ul>
|
||||||
|
<li>Open Google Earth</li>
|
||||||
|
<li>Create a folder "Courses" under "Temporary Places" or under "My Places"</li>
|
||||||
|
<li>Create a folder for each Course under "Courses", and for each course:</li>
|
||||||
|
<li>Create Start polygon</li>
|
||||||
|
<li>Optional: Create First "must row through" polygon</li>
|
||||||
|
<li>Optional: Create subsequent "must row through" polygons</li>
|
||||||
|
<li>Create Finish polygon</li>
|
||||||
|
<li>Save "Courses" as KML file</li>
|
||||||
|
<li>Upload the file to rowsandall.com using the "Add Courses" button</li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>CrewNerd has published a nice video tutorial of the process.
|
<p>You are allowed to have multiple courses in one KML file.
|
||||||
<a href="https://youtu.be/whhWFmMJbhM">Click here</a> to see the video. The part
|
Your CrewNerd "courses.kml" file works out of the box</p>
|
||||||
we're interested in starts at 2:05.
|
|
||||||
</p>
|
<p>The site doesn't test for duplicate courses.</p>
|
||||||
|
|
||||||
<p>
|
</li>
|
||||||
In addition to start and finish areas, on rowsandall.com you can add additional
|
</ul>
|
||||||
polygons to mark areas that you must pass (in that order). This allows for
|
|
||||||
courses with turns around buoys, respecting buoy lines, or respecting traffic
|
|
||||||
patterns on rivers and lakes.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<ul>
|
|
||||||
<li>Open Google Earth</li>
|
|
||||||
<li>Create a folder "Courses" under "Temporary Places" or under "My Places"</li>
|
|
||||||
<li>Create a folder for each Course under "Courses", and for each course:</li>
|
|
||||||
<li>Create Start polygon</li>
|
|
||||||
<li>Optional: Create First "must row through" polygon</li>
|
|
||||||
<li>Optional: Create subsequent "must row through" polygons</li>
|
|
||||||
<li>Create Finish polygon</li>
|
|
||||||
<li>Save "Courses" as KML file</li>
|
|
||||||
<li>Upload the file to rowsandall.com using the "Add Courses" button</li>
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>You are allowed to have multiple courses in one KML file.
|
|
||||||
Your CrewNerd "courses.kml" file works out of the box</p>
|
|
||||||
|
|
||||||
<p>The site doesn't test for duplicate courses.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block sidebar %}
|
||||||
|
{% include 'menu_racing.html' %}
|
||||||
|
{% endblock %}
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
{% block main %}
|
{% block main %}
|
||||||
<h1>Submit Your Result for {{ race.name }}</h1>
|
<h1>Submit Your Result for {{ race.name }}</h1>
|
||||||
|
|
||||||
<ul>
|
<ul class="main-content">
|
||||||
<li class="grid_2">
|
<li class="grid_4">
|
||||||
<form id="race_submit_form"
|
<form id="race_submit_form"
|
||||||
method="post">
|
method="post">
|
||||||
<p>Select one of the following workouts that you rowed within the race window</p>
|
<p>Select one of the following workouts that you rowed within the race window</p>
|
||||||
|
|||||||
@@ -6323,6 +6323,7 @@ def courses_view(request):
|
|||||||
|
|
||||||
return render(request,'list_courses.html',
|
return render(request,'list_courses.html',
|
||||||
{'courses':courses,
|
{'courses':courses,
|
||||||
|
'active':'nav-racing',
|
||||||
'rower':r,
|
'rower':r,
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -14312,6 +14313,7 @@ def virtualevent_submit_result_view(request,id=0):
|
|||||||
{
|
{
|
||||||
'race':race,
|
'race':race,
|
||||||
'workouts':ws,
|
'workouts':ws,
|
||||||
|
'active':'nav-racing',
|
||||||
'rower':r,
|
'rower':r,
|
||||||
'w_form':w_form,
|
'w_form':w_form,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user