From 113c2d0f05a15df7baf339360475b97395109541 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 27 Dec 2021 10:13:24 +0100 Subject: [PATCH] als tabel --- rowers/templates/list_workouts.html | 133 +++++----------------------- 1 file changed, 20 insertions(+), 113 deletions(-) diff --git a/rowers/templates/list_workouts.html b/rowers/templates/list_workouts.html index d7fa0479..10d32c13 100644 --- a/rowers/templates/list_workouts.html +++ b/rowers/templates/list_workouts.html @@ -153,134 +153,41 @@

-
  • +
  • {% if workouts %} - - - - - - - - - - - - - {% if not team %} - - {% else %} - - {% endif %} - - +
    R Date Time Name Type Distance Duration Avg HR Max HR   - Owner -
    {% for workout in workouts %} - {% if workout.rankingpiece %} - - {% else %} - {% endif %} - - - - {% if workout|may_edit:request %} - {% if workout.name != '' %} + - {% else %} - {% endif %} - {% else %} - {% if workout.name != '' %} - - {% else %} - - {% endif %} - {% endif %} - - - - - - {% if team %} - - {% endif %} - - - - - - - +

    + {% endfor %}
    - {% if workout.rankingpiece %} - - {% else %} - - {% endif %} - {{ workout.date|date:"Y-m-d" }} {{ workout.starttime|date:"H:i" }} - + {{ workout.workouttype }} + + {% if workout.name != '' %} +

    {{ workout.name }} - +

    + {% else %} +

    + No Name +

    + {% endif %} +

    {{ workout.date|date:"Y-m-d" }} {{ workout.starttime|date:"H:i" }}

    +

    {{ workout.distance }}m {{ workout.duration |durationprint:"%H:%M:%S.%f" }}

    - No Name - {{ workout.name }}No Name {{ workout.workouttype }} {{ workout.distance }}m {{ workout.duration |durationprint:"%H:%M:%S.%f" }} {{ workout.averagehr }} {{ workout.maxhr }} - {% if workout|may_edit:request %} - - {{ workout.user.user.first_name }} - {{ workout.user.user.last_name }} - - {% else %} - {{ workout.user.user.first_name }} - {{ workout.user.user.last_name }} - {% endif %} - - {% if workout|may_edit:request %} +

    {% if workout|may_edit:request %} - + {% else %}   {% endif %} -

    - - - - - - - - - - - - - - - - - {% if workout|may_edit:request %} - - - - {% else %} -   - {% endif %} -