Add documents fahrzeuge
This commit is contained in:
parent
3b6971aa97
commit
38b1b0ff4e
|
|
@ -1,7 +1,3 @@
|
|||
from wagtail.blocks import StreamValue
|
||||
from wagtail.blocks.list_block import ListBlock, ListValue
|
||||
from wagtail.rich_text import RichText
|
||||
|
||||
from vbv_lernwelt.assignment.models import (
|
||||
AssignmentListPage,
|
||||
AssignmentType,
|
||||
|
|
@ -20,6 +16,9 @@ from vbv_lernwelt.assignment.tests.assignment_factories import (
|
|||
from vbv_lernwelt.core.utils import replace_whitespace
|
||||
from vbv_lernwelt.course.consts import COURSE_UK
|
||||
from vbv_lernwelt.course.models import CoursePage
|
||||
from wagtail.blocks import StreamValue
|
||||
from wagtail.blocks.list_block import ListBlock, ListValue
|
||||
from wagtail.rich_text import RichText
|
||||
|
||||
|
||||
def create_uk_fahrzeug_casework(course_id=COURSE_UK):
|
||||
|
|
|
|||
|
|
@ -446,6 +446,78 @@ def create_uk_circle_fahrzeug(lp, title="Fahrzeug"):
|
|||
LearningContentDocumentListFactory(
|
||||
title="Unterlagen für den Unterricht",
|
||||
parent=circle,
|
||||
documents=[
|
||||
(
|
||||
"document",
|
||||
LearnMediaBlockFactory(
|
||||
title="Präsentation",
|
||||
description="",
|
||||
icon_url="/static/icons/demo/icon-hf-book.png",
|
||||
link_display_text="Dokument anzeigen",
|
||||
url="/static/media/uk/de_üK1_FZ_00_Präsentation.pdf",
|
||||
),
|
||||
),
|
||||
(
|
||||
"document",
|
||||
LearnMediaBlockFactory(
|
||||
title="Begriffe",
|
||||
description="",
|
||||
icon_url="/static/icons/demo/icon-hf-book.png",
|
||||
link_display_text="Dokument anzeigen",
|
||||
url="/static/media/uk/de_üK1_FZ_02_Begriffe.pdf",
|
||||
),
|
||||
),
|
||||
(
|
||||
"document",
|
||||
LearnMediaBlockFactory(
|
||||
title="Checkliste",
|
||||
description="",
|
||||
icon_url="/static/icons/demo/icon-hf-book.png",
|
||||
link_display_text="Dokument anzeigen",
|
||||
url="/static/media/uk/de_üK1_FZ_04_Checkliste.pdf",
|
||||
),
|
||||
),
|
||||
(
|
||||
"document",
|
||||
LearnMediaBlockFactory(
|
||||
title="Arbeitsblatt Schadenfälle",
|
||||
description="",
|
||||
icon_url="/static/icons/demo/icon-hf-book.png",
|
||||
link_display_text="Dokument anzeigen",
|
||||
url="/static/media/uk/de_üK1_FZ_05_A_Schaden.pdf",
|
||||
),
|
||||
),
|
||||
(
|
||||
"document",
|
||||
LearnMediaBlockFactory(
|
||||
title="Überblick Kasko",
|
||||
description="",
|
||||
icon_url="/static/icons/demo/icon-hf-book.png",
|
||||
link_display_text="Dokument anzeigen",
|
||||
url="/static/media/uk/de_üK1_FZ_07_Kasko.pdf",
|
||||
),
|
||||
),
|
||||
(
|
||||
"document",
|
||||
LearnMediaBlockFactory(
|
||||
title="Offerte und anschliessendes Verkaufsgespräch",
|
||||
description="",
|
||||
icon_url="/static/icons/demo/icon-hf-book.png",
|
||||
link_display_text="Dokument anzeigen",
|
||||
url="/static/media/uk/de_üK1_FZ_08_A_Offerte und Verkaufsgespräch.pdf",
|
||||
),
|
||||
),
|
||||
(
|
||||
"document",
|
||||
LearnMediaBlockFactory(
|
||||
title="Arbeitsblatt Schadenfälle Reserve",
|
||||
description="",
|
||||
icon_url="/static/icons/demo/icon-hf-book.png",
|
||||
link_display_text="Dokument anzeigen",
|
||||
url="/static/media/uk/de_üK1_FZ_A_Reserve_Schaden.pdf",
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
LearningUnitFactory(title="Präsenzkurs", parent=circle)
|
||||
LearningContentAttendanceCourseFactory(
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ import random
|
|||
import djclick as click
|
||||
|
||||
from vbv_lernwelt.assignment.creators.create_assignments import (
|
||||
create_uk_basis_prep_assignment,
|
||||
create_uk_fahrzeug_casework,
|
||||
create_uk_fahrzeug_prep_assignment,
|
||||
create_uk_reflection,
|
||||
create_uk_kickoff_prep_assignment,
|
||||
create_uk_basis_prep_assignment,
|
||||
create_uk_reflection,
|
||||
)
|
||||
from vbv_lernwelt.assignment.models import Assignment
|
||||
from vbv_lernwelt.assignment.services import update_assignment_completion
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -2,6 +2,7 @@ server/requirements/
|
|||
env_secrets/
|
||||
env/bitbucket/Dockerfile
|
||||
env/docker_local.env
|
||||
server/vbv_lernwelt/assignment/creators/create_assignments.py
|
||||
server/vbv_lernwelt/static/
|
||||
server/vbv_lernwelt/media/
|
||||
supabase.md
|
||||
|
|
@ -9,4 +10,4 @@ scripts/supabase/init.sql
|
|||
ramon.wenger@iterativ.ch.gpg
|
||||
.envs/
|
||||
client/package-lock.json
|
||||
package-lock.json
|
||||
package-lock.json
|
||||
|
|
|
|||
Loading…
Reference in New Issue