From e43e351e9dd05c9bc0a9eb6544980fc7763e56a7 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Thu, 7 Sep 2023 18:24:49 +0200 Subject: [PATCH] Refactor design of learning contents in circle page --- client/src/components/ui/ItCheckbox.vue | 20 +- client/src/constants.ts | 6 + client/src/locales/de/translation.json | 6 +- client/src/locales/fr/translation.json | 3 +- client/src/locales/it/translation.json | 3 +- .../circlePage/LearningSequence.vue | 198 +++++++++--------- server/vbv_lernwelt/learnpath/serializers.py | 4 +- 7 files changed, 118 insertions(+), 122 deletions(-) diff --git a/client/src/components/ui/ItCheckbox.vue b/client/src/components/ui/ItCheckbox.vue index 89fbcb59..db9f9525 100644 --- a/client/src/components/ui/ItCheckbox.vue +++ b/client/src/components/ui/ItCheckbox.vue @@ -1,22 +1,22 @@ @@ -163,33 +156,36 @@ function checkboxIconUncheckedHoverPath(lc: LearningContent) {
  • -
    - -
    -
    - -
    -
    +
    +
    + +
    +
    + +
    +
    + +
    +
    {{ learningContent.title }} @@ -202,52 +198,51 @@ function checkboxIconUncheckedHoverPath(lc: LearningContent) { > {{ learningContent.title }} -
    - {{ $t("circlePage.Dieser Inhalt gehört zu x") }} -
    - - {{ $t("circlePage.Im KompetenzNavi anschauen") }} - -
    -
    - -
    - - -
    - -
    + +
    + {{ + $t("circlePage.Dieser Inhalt gehört zu x", { + x: (learningContent as LearninContentWithCompetenceCertificate) + ?.competence_certificate?.title, + }) + }} +
    + + {{ $t("circlePage.Im KompetenzNavi anschauen") }} + +
    + +
    + +
  • @@ -259,24 +254,21 @@ function checkboxIconUncheckedHoverPath(lc: LearningContent) { >
    - +
    {{ $t("selfEvaluation.selfEvaluationYes") }}
    - +
    {{ $t("selfEvaluation.selfEvaluationNo") }}
    -
    - -
    {{ $t("selfEvaluation.selfEvaluation") }}
    +
    + +
    {{ $t("a.Selbsteinschätzung") }}
    diff --git a/server/vbv_lernwelt/learnpath/serializers.py b/server/vbv_lernwelt/learnpath/serializers.py index b242c5a4..510d697a 100644 --- a/server/vbv_lernwelt/learnpath/serializers.py +++ b/server/vbv_lernwelt/learnpath/serializers.py @@ -6,9 +6,9 @@ from vbv_lernwelt.competence.serializers import ( from vbv_lernwelt.core.utils import get_django_content_type from vbv_lernwelt.course.serializer_helpers import get_course_serializer_class from vbv_lernwelt.learnpath.models import ( - LearningUnit, - LearningContentEdoniqTest, LearningContentAssignment, + LearningContentEdoniqTest, + LearningUnit, )