From a746052fbfc7b2dc240c74151427913b3ad6f373 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 2 Dec 2018 13:14:19 +0100 Subject: [PATCH] adding race buttons to left racing menu not ready yet --- rowers/templates/menu_racing.html | 71 +++++++++++++++++++++++++++++- rowers/templates/virtualevent.html | 2 +- rowers/views.py | 24 ++++++++++ 3 files changed, 94 insertions(+), 3 deletions(-) diff --git a/rowers/templates/menu_racing.html b/rowers/templates/menu_racing.html index 4a06ef2d..3add6467 100644 --- a/rowers/templates/menu_racing.html +++ b/rowers/templates/menu_racing.html @@ -15,15 +15,82 @@  New Indoor Race + {% if race %} + {% if reguest.user.is_anonymous %} +
  • + {% if race.sessiontype == 'race' %} + +  Register + {% else %} + +  Register + {% endif %} +
  • + {% endif %} + {% for button in buttons %} + {% if button == 'registerbutton' %} +
  • + {% if race.sessiontype == 'race' %} + +  Register + {% else %} + +  Register + {% endif %} +
  • + {% endif %} + {% if button == 'submitbutton' %} +
  • + +  Submit Workout +
  • +
  • + +  Upload your race result + +
  • +
  • + +  Enter Result + +
  • + {% endif %} + {% if button == 'resubmitbutton' %} +
  • + Submit New Result +
  • + {% endif %} + {% if button == 'withdrawbutton' %} + +  Withdraw + {% endif %} + {% if button == 'adddisciplinebutton' %} + +  Register New Boat + + {% endif %} + {% if button == 'editbutton' %} +
  • + {% if race.sessiontype == 'race' %} +  Edit Race + + {% else %} +  Edit Race + + {% endif %} +
  • + {% endif %} + {% endfor %} + {% endif %}
  • -  Courses +  Courses
  • {% if course %}
  • - +