From 86b3daf49857f2f02df3fa4a25451304b26f1ac7 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 13 Oct 2020 21:31:45 +0200 Subject: [PATCH] Mike's recommendations --- rowers/templates/user_analysis_select.html | 47 ++++++++++------------ rowers/views/analysisviews.py | 2 +- 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/rowers/templates/user_analysis_select.html b/rowers/templates/user_analysis_select.html index 37974888..81bfc7df 100644 --- a/rowers/templates/user_analysis_select.html +++ b/rowers/templates/user_analysis_select.html @@ -309,12 +309,25 @@

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.

-
  • -
    +
  • + + + {{ dateform.as_table }} +
    + + {{ optionsform.as_table }} +
    +
  • +
  • +

    Select two or more workouts, set your plot settings below, + and press submit +

    + + {{ chartform.as_table }} +
    +
  • +
  • {{ searchform }} - -
  • {% if workouts %} @@ -326,27 +339,9 @@ {% else %}

    No workouts found

    {% endif %} -
  • -
  • -

    Select two or more workouts, set your plot settings below, - and press submit -

    - {% csrf_token %} - - {{ chartform.as_table }} -
    -
  • -
  • - - - {{ dateform.as_table }} -
    - - {{ optionsform.as_table }} -
    - {% csrf_token %} - - + {% csrf_token %} + +
  • diff --git a/rowers/views/analysisviews.py b/rowers/views/analysisviews.py index 43b2563b..aa8cce9d 100644 --- a/rowers/views/analysisviews.py +++ b/rowers/views/analysisviews.py @@ -197,7 +197,7 @@ def analysis_new(request,userid=0,function='boxplot',teamid=0): if rankingonly: workouts = workouts.exclude(rankingpiece=False) - query = request.GET.get('q') + query = request.POST.get('q') if query: query_list = query.split() workouts = workouts.filter(