From ee9be864650bee89041f777530ec0e716f6f67df Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Tue, 28 Dec 2021 22:22:51 +0000 Subject: [PATCH] Do not display items on trainee detail That's what the detailed view is for... And definitely nowt to do with my horrifically optimised SQL --- training/templates/trainee_detail.html | 99 ++++++++++---------------- 1 file changed, 36 insertions(+), 63 deletions(-) diff --git a/training/templates/trainee_detail.html b/training/templates/trainee_detail.html index a6ffd128..af4abdd1 100644 --- a/training/templates/trainee_detail.html +++ b/training/templates/trainee_detail.html @@ -1,31 +1,29 @@ {% extends 'base_training.html' %} {% load static %} -{% load user_has_qualification from tags %} {% load percentage_complete from tags %} -{% load user_level_if_present from tags %} -{% load colour_from_depth from tags %} +{% load markdown_tags %} {% block css %} - + {% endblock %} {% block preload_js %} - + {% endblock %} {% block js %} - - - + + + {% endblock %} {% block content %} @@ -51,64 +49,39 @@

Training Levels

-

Qualified

-

In Progress

{% for level in started_levels %} {% percentage_complete level object as completion %}
-

{{ level }}

+

{{ level }}

-

{{ level.description|truncatewords:30 }}

-
+ {{ level.description|markdown }} +
+ -
- {% endfor %} -
-
-
-

Training Items Key: Training Started Training Complete Passed Out

- {% for category in categories %} - {% if forloop.first or forloop.counter|divisibleby:3 %}
{% endif %} -
-

{{ category }}

-
- {% for q in object.qualifications_obtained.all %} - {% if q.item.category == category %} -
  • {{q.item}} ({{q.date}})
  • - {% endif %} - {% empty %} -
  • None yet...
  • - {% endfor %} -
    -
    - {% if forloop.counter|add:"1"|divisibleby:3 %}
    {% endif %} - {% endfor %} -
    -
    -
    -
    - {% include 'partials/last_edited.html' with target="trainee_history" %} -
    +
    + + + {% endfor %} + {% endblock %}