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 %}