diff --git a/rowers/templates/windedit.html b/rowers/templates/windedit.html index e0eb56bb..933f5705 100644 --- a/rowers/templates/windedit.html +++ b/rowers/templates/windedit.html @@ -1,41 +1,13 @@ -{% extends "base.html" %} +{% extends "newbase.html" %} {% load staticfiles %} {% load rowerfilters %} {% block title %}Advanced Features {% endblock %} -{% block content %} -
-
-

Wind Editor

-
-
-
-

- Edit Workout -

-
-
-

- Advanced Edit -

- -
-
-

OTW Power

- Run calculations to get power values for your row. - -
-
-
-
-

Workflow View

-
-
-

Stream Edit

-
-
-
+{% block main %} +

Wind Editor

+
    +
  • Update wind between distance 1 and distance 2. Submit wind strength and direction at start and end of segment. Blank the form for values @@ -47,84 +19,61 @@ to find historical weather data from an on-line weather station near the location of your row.

    - -
    -
    - {% if form.errors %} -

    - Please correct the error{{ form.errors|pluralize }} below. -

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

    Closest Airport Weather: {{ airport }} - ({{ airportdistance | floatformat:-1 }} km) - Airport Data

    -

    - Dark Sky Data -

    - Download wind speed and bearing from The Dark Sky +

  • +
  • + + {% if form.errors %} +

    + Please correct the error{{ form.errors|pluralize }} below.

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

Manual update of the wind data from the form.

-
+ +
  • +

    Closest Airport Weather: {{ airport }} + ({{ airportdistance | floatformat:-1 }} km) + Airport Data

    +

    + Dark Sky Data +

    + Download wind speed and bearing from The Dark Sky +

    +
  • +
  • -
  • - -
    + +
  • - - + + - {{ interactiveplot |safe }} + {{ interactiveplot |safe }} - - - - -
    -
    - {{ the_div |safe }} -
    -
    - -
    -
    + {{ the_div |safe }} +
  • +
  • +
    {{ gmapdiv |safe }} {{ gmap |safe }}
    -
  • + + {% endblock %} + +{% block sidebar %} +{% include 'menu_workout.html' %} +{% endblock %} diff --git a/rowers/views.py b/rowers/views.py index 79416dfb..aa4ff2da 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -6947,6 +6947,22 @@ def workout_downloadmetar_view(request,id=0, @user_passes_test(ispromember,login_url="/",redirect_field_name=None) def workout_wind_view(request,id=0,message="",successmessage=""): row = get_workout(id) + r = getrower(request.user) + breadcrumbs = [ + { + 'url':'/rowers/list-workouts', + 'name':'Workouts' + }, + { + 'url':get_workout_default_page(request,id), + 'name': str(row.id) + }, + { + 'url':reverse(workout_wind_view,kwargs={'id':id}), + 'name': 'Wind' + } + + ] if (checkworkoutuser(request.user,row)==False): message = "You are not allowed to edit this workout" @@ -7050,6 +7066,9 @@ def workout_wind_view(request,id=0,message="",successmessage=""): return render(request, 'windedit.html', {'workout':row, + 'rower':r, + 'breadcrumbs':breadcrumbs, + 'active':'nav-active', 'teams':get_my_teams(request.user), 'interactiveplot':script, 'form':form,