From 79c3b86034efc6e90c8dc88501dd6d6a4c36320d Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 24 Nov 2017 09:41:01 +0100 Subject: [PATCH] added glue to templates --- rowers/templates/advancededit.html | 369 +++++++++++++++------------- rowers/templates/advancedotw.html | 31 ++- rowers/templates/list_workouts.html | 7 +- 3 files changed, 222 insertions(+), 185 deletions(-) diff --git a/rowers/templates/advancededit.html b/rowers/templates/advancededit.html index 0df1fff3..a43e0c04 100644 --- a/rowers/templates/advancededit.html +++ b/rowers/templates/advancededit.html @@ -6,198 +6,217 @@ {% block content %}
- - {% if form.errors %} -

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

- {% endif %} - -

{{ workout.name }} - Advanced

- {% if user.rower.rowerplan == 'basic' %} -

This is a preview of the page with advanced functionality for Pro users. - See - the page about Pro membership for more information and to sign up for Pro Membership -{% endif %} -

-

- Edit Workout -

-
-
-

- Workflow View -

-
-
-

- Export -

- -
-
- - - - - - - - - - - - -
Date:{{ workout.date }}
Time:{{ workout.starttime }}
Distance:{{ workout.distance }}m
Duration:{{ workout.duration |durationprint:"%H:%M:%S.%f" }}
Public link to this workout - https://rowsandall.com/rowers/workout/{{ workout.id }} - -
-
- -
-
- {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} - Compare Workouts - {% else %} - Compare Workouts +
+ {% if form.errors %} +

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

+ {% endif %} + +

{{ workout.name }} - Advanced

+ {% if user.rower.rowerplan == 'basic' %} +

This is a preview of the page with advanced functionality for Pro users. + See + the page about Pro membership + for more information and to sign up for Pro Membership

{% endif %} -

- Compare this workout to other workouts. Plot HR, SPM, or pace vs time or distance for the two workouts. -

-
- - Flexible Interactive Plot - -

- Flexible Interactive plot. Pick your own X and Y axis parameters. -

+
+
+

+ Edit Workout +

+
+
+

+ Workflow View +

+
+
+

+ Export +

+
-
-

+

+ + + + + + + + + + + + +
Date:{{ workout.date }}
Time:{{ workout.starttime }}
Distance:{{ workout.distance }}m
Duration:{{ workout.duration |durationprint:"%H:%M:%S.%f" }}
Public link to this workout + https://rowsandall.com/rowers/workout/{{ workout.id }} + +
+
+ +
+
{% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} - Edit Intervals + Compare Workouts {% else %} - Edit Intervals + Compare Workouts {% endif %} -

- Enter or change the interval and summary data for your workout - -

- Enter or change the interval and summary data for your workout -

+

+ Compare this workout to other workouts. Plot HR, SPM, or pace vs time or distance for the two workouts. +

+
+
+ + Flexible Interactive Plot + +

+ Flexible Interactive plot. Pick your own X and Y axis parameters. +

+
+ +
+

+ {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} + Edit Intervals + {% else %} + Edit Intervals + {% endif %} +

+ Enter or change the interval and summary data for your workout + +

+ Enter or change the interval and summary data for your workout +

+
-
-
- -
-

- {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} - Dist Metrics Plot - {% else %} - Dist Metrics Plot - {% endif %} -

-

- Various advanced stroke metrics plotted versus distance. -

+
+ +
+

+ {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} + Dist Metrics Plot + {% else %} + Dist Metrics Plot + {% endif %} +

+

+ Various advanced stroke metrics plotted versus distance. +

+
+
+

+ {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} + Time Metrics Plot + {% else %} + Time Metrics Plot + {% endif %} +

+

+ Various advanced stroke metrics plotted versus time. +

+
+
+

+ {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} + Power Histogram + {% else %} + Power Histogram + {% endif %} +

+

+ Plot the Power Histogram of this workout +

+
-
-

- {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} - Time Metrics Plot - {% else %} - Time Metrics Plot - {% endif %} -

-

- Various advanced stroke metrics plotted versus time. -

+
+
+

+ {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} + Glue + {% else %} + Glue + {% endif %} +

+

+ Glue multiple workouts together (into one workout). For example, to combine separately recorded intervals. +

+
+ +
+

+ {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} + Sensor Fusion + {% else %} + Sensor Fusion + {% endif %} +

+

+ Merge data from another source into this workout +

+
+
+

+ {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} + Split Workout + {% else %} + Split Workout + {% endif %} +

+

+ Split workout into two seperate workouts +

+
-
-

- Big Interactive Plot -

-

- See (and save) the big interactive plot -

+
+
+

+ Big Interactive Plot +

+

+ See (and save) the big interactive plot +

+
-
- -
-

- {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} - Power Histogram - {% else %} - Dist Metrics Plot - {% endif %} -

-

- Plot the Power Histogram of this workout -

-
-
-

- {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} - Sensor Fusion - {% else %} - Sensor Fusion - {% endif %} -

-

- Merge data from another source into this workout -

-
-
-

- {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} - Split Workout - {% else %} - Split Workout - {% endif %} -

-

- Split workout into two seperate workouts -

-
-
-
-
- - - - - {{ interactiveplot |safe }} - +
+ + + + + {{ interactiveplot |safe }} + - - -
- {{ the_div |safe }} -
+ + +
+ {{ the_div |safe }} +
+
{% endblock %} diff --git a/rowers/templates/advancedotw.html b/rowers/templates/advancedotw.html index 3c4999fc..0f54ff2b 100644 --- a/rowers/templates/advancedotw.html +++ b/rowers/templates/advancedotw.html @@ -187,14 +187,18 @@
-
-

- Big Interactive Plot -

-

- See (and save) the big interactive plot -

-
+
+

+ {% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} + Glue + {% else %} + Glue + {% endif %} +

+

+ Glue multiple workouts together (into one workout). For example, to combine separately recorded intervals. +

+

{% if user.rower.rowerplan == 'pro' or user.rower.rowerplan == 'coach' %} @@ -220,6 +224,17 @@

+
+
+
+

+ Big Interactive Plot +

+

+ See (and save) the big interactive plot +

+
+
diff --git a/rowers/templates/list_workouts.html b/rowers/templates/list_workouts.html index c04b7727..e051f0b6 100644 --- a/rowers/templates/list_workouts.html +++ b/rowers/templates/list_workouts.html @@ -195,7 +195,7 @@
-
+
{% if rankingonly and not team %}
All Workouts @@ -205,6 +205,9 @@ Ranking Pieces Only
{% endif %} +

 

{% if team %}
-
+
{% if workouts.has_previous %} {% if request.GET.q %}