From aa5921fa58abbabb5d8e12411dc3124aee54f49f Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 29 Sep 2018 10:55:54 +0200 Subject: [PATCH] line 145 urls.py --- rowers/templates/menu_racing.html | 6 +-- rowers/templates/virtualevents.html | 57 +++++++++++++---------------- rowers/views.py | 1 + 3 files changed, 29 insertions(+), 35 deletions(-) diff --git a/rowers/templates/menu_racing.html b/rowers/templates/menu_racing.html index 547258db..15a8a62c 100644 --- a/rowers/templates/menu_racing.html +++ b/rowers/templates/menu_racing.html @@ -1,17 +1,17 @@

Racing

  • - +  Races
  • - +  New Race
  • - +  Courses
  • diff --git a/rowers/templates/virtualevents.html b/rowers/templates/virtualevents.html index 5f7c92f7..4524a435 100644 --- a/rowers/templates/virtualevents.html +++ b/rowers/templates/virtualevents.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "newbase.html" %} {% load staticfiles %} {% load rowerfilters %} @@ -24,8 +24,6 @@ data: data, success: function(data) { - console.log("got something back"); - console.log(data) $('#racelist').html(data) } @@ -57,40 +55,35 @@ {% endblock %} -{% block content %} +{% block main %} -
    -
    +
      +
    • - Add Race -

      -
    -
    -

    - Courses +

    + {{ form.as_table }} + {% csrf_token %}

    -
    -
    - -
    - -
    - {{ form.as_table }} - {% csrf_token %} -
    -
    - -
    - -
    - -
    +

    + + +

    +
  • Click on the event name or on the Details button to see the event details (and manage your participation and results). Click on the course name to see the course details.

    - {% include 'racelist.html' %} -
  • + - - {% endblock %} +
  • + + {% include 'racelist.html' %} +
  • + +
+ +{% endblock %} + +{% block sidebar %} +{% include 'menu_racing.html' %} +{% endblock %} diff --git a/rowers/views.py b/rowers/views.py index c79a015a..2f972a19 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -13630,6 +13630,7 @@ def virtualevents_view(request): return render(request,'virtualevents.html', { 'races':races, 'form':form, + 'active':'nav-racing', 'rower':r, } )