diff --git a/rowers/templates/user_multiflex_select.html b/rowers/templates/user_multiflex_select.html index 2e0ede5c..9d553b5d 100644 --- a/rowers/templates/user_multiflex_select.html +++ b/rowers/templates/user_multiflex_select.html @@ -78,6 +78,32 @@

TIP: Agree with your team members to put tags (e.g. '8x500m') in the notes section of your workouts. That makes it easy to search.

+
  • + {% if theuser %} +
    + {% else %} + + {% endif %} + + + {{ dateform.as_table }} +
    + + {{ modalityform.as_table }} +
    + {% csrf_token %} + +
    +
  • +
  • +
    + + +
    +
  • {% if workouts %} @@ -96,36 +122,10 @@ {{ chartform.as_table }}

    - +

  • -
  • - {% if theuser %} -
    - {% else %} - - {% endif %} - - - {{ dateform.as_table }} -
    - - {{ modalityform.as_table }} -
    - {% csrf_token %} - -
    -
  • -
  • -
    - - -
    -
  • diff --git a/rowers/views.py b/rowers/views.py index 18b4a60e..75754ac2 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -5655,8 +5655,10 @@ def user_multiflex_select(request, if 'enddate' in request.session: enddate = iso8601.parse_date(request.session['enddate']) - - waterboattype = request.session['waterboattype'] + try: + waterboattype = request.session['waterboattype'] + except KeyError: + waterboattype = mytypes.waterboattype else: waterboattype = mytypes.waterboattype