Private
Public Access
1
0

list courses (line 155 urls.py)

This commit is contained in:
Sander Roosendaal
2018-10-02 22:10:31 +02:00
parent 161b636447
commit b8a150f026
3 changed files with 83 additions and 91 deletions

View File

@@ -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">
<h1>Courses</h1>
<ul class="main-content">
<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,38 +51,24 @@
{% 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>
</div>
<p>&nbsp;</p>
<form id="searchform" action="/rowers/list-courses/" <form id="searchform" action="/rowers/list-courses/"
method="get" accept-charset="utf-8"> 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>
</div>
</form> </form>
</div> </p>
<div class="grid_2 omega"> <p>
&nbsp; <a class="button small green" href="/rowers/courses/upload">Add Courses</a>
</div> </p>
</div>
<div class="grid_4 omega">
<div class="grid_4" id="announcements">
{% if announcements %} {% if announcements %}
<h3>What's New?</h3> <h3>What's New?</h3>
{% for a in announcements %} {% for a in announcements %}
@@ -95,8 +81,10 @@
{% endfor %} {% endfor %}
<p>&nbsp;</p> <p>&nbsp;</p>
{% endif %} {% endif %}
</div>
<div class="grid_4" id="about"> </li>
<li class="grid_4">
<h2>How-to</h2> <h2>How-to</h2>
<p> <p>
Courses allow you to mark the start & finish lines of your Courses allow you to mark the start & finish lines of your
@@ -142,9 +130,11 @@
Your CrewNerd "courses.kml" file works out of the box</p> Your CrewNerd "courses.kml" file works out of the box</p>
<p>The site doesn't test for duplicate courses.</p> <p>The site doesn't test for duplicate courses.</p>
</div>
</div>
</li>
</div> </ul>
{% endblock %} {% endblock %}
{% block sidebar %}
{% include 'menu_racing.html' %}
{% endblock %}

View File

@@ -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>

View File

@@ -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,
}) })