Add learning module
This commit is contained in:
parent
44d8c1645e
commit
c9a5fd573c
|
|
@ -15,6 +15,7 @@ from vbv_lernwelt.learnpath.models_learning_unit_content import (
|
||||||
BookBlock,
|
BookBlock,
|
||||||
DocumentBlock,
|
DocumentBlock,
|
||||||
ExerciseBlock,
|
ExerciseBlock,
|
||||||
|
LearningModuleBlock,
|
||||||
MediaLibraryBlock,
|
MediaLibraryBlock,
|
||||||
OnlineTrainingBlock,
|
OnlineTrainingBlock,
|
||||||
PlaceholderBlock,
|
PlaceholderBlock,
|
||||||
|
|
@ -286,6 +287,7 @@ class LearningContent(Page):
|
||||||
("video", VideoBlock()),
|
("video", VideoBlock()),
|
||||||
("resource", ResourceBlock()),
|
("resource", ResourceBlock()),
|
||||||
("exercise", ExerciseBlock()),
|
("exercise", ExerciseBlock()),
|
||||||
|
("learningmodule", LearningModuleBlock()),
|
||||||
("online_training", OnlineTrainingBlock()),
|
("online_training", OnlineTrainingBlock()),
|
||||||
("media_library", MediaLibraryBlock()),
|
("media_library", MediaLibraryBlock()),
|
||||||
("document", DocumentBlock()),
|
("document", DocumentBlock()),
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,14 @@ class ExerciseBlock(blocks.StructBlock):
|
||||||
icon = "media"
|
icon = "media"
|
||||||
|
|
||||||
|
|
||||||
|
class LearningModuleBlock(blocks.StructBlock):
|
||||||
|
description = blocks.TextBlock()
|
||||||
|
url = blocks.TextBlock()
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
icon = "media"
|
||||||
|
|
||||||
|
|
||||||
class MediaLibraryBlock(blocks.StructBlock):
|
class MediaLibraryBlock(blocks.StructBlock):
|
||||||
description = blocks.TextBlock()
|
description = blocks.TextBlock()
|
||||||
url = blocks.TextBlock()
|
url = blocks.TextBlock()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue