From 6c1f62b1688855cc54d905bf4141645f4ab84187 Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Thu, 13 Jan 2022 18:43:43 +0100 Subject: [PATCH] Adding Closure Table pour Educative prerequisites --- templates/objectives/skills/details.html | 3 + templates/objectives/skills/tree.html | 78 +++++++------------ ultron/objective/admin.py | 21 ++++- .../management/commands/rebuild_tree.py | 14 +--- .../migrations/0012_prerequisiteclosure.py | 27 +++++++ ultron/objective/views.py | 20 ++++- 6 files changed, 96 insertions(+), 67 deletions(-) create mode 100644 ultron/objective/migrations/0012_prerequisiteclosure.py diff --git a/templates/objectives/skills/details.html b/templates/objectives/skills/details.html index baf9c4325c..592933ca00 100644 --- a/templates/objectives/skills/details.html +++ b/templates/objectives/skills/details.html @@ -87,6 +87,9 @@ {% endif %} +
+ Learning Line
+

From {{ skill.departure }}, {% if skill.rotation %} {{ skill.rotation }} quart of {{ skill.get_rotation_type_display }} rotation {% endif %}{% if skill.twist %} with {{ skill.twist }} half-twist {% endif %} in a {{ skill.get_position_display }} position, landing to {{ skill.landing }}

diff --git a/templates/objectives/skills/tree.html b/templates/objectives/skills/tree.html index 7ff575cce0..78a7d9aff4 100644 --- a/templates/objectives/skills/tree.html +++ b/templates/objectives/skills/tree.html @@ -1,70 +1,45 @@ {% extends "base.html" %} - +{% load static %} {% block header %} {% endblock %} {% block content %}
- +
+

{{ skill.short_label }}

+

{{ skill.notation }}

+
+
+
+ +
+
{% endblock %} {% block footerscript %} - - + +