Add new types, update name
This commit is contained in:
parent
1d7816f664
commit
44d8c1645e
|
|
@ -66,6 +66,10 @@ export interface VideoBlock extends BaseLearningContentBlock {
|
|||
readonly type: "video";
|
||||
}
|
||||
|
||||
export interface LearningModuleBlock extends BaseLearningContentBlock {
|
||||
readonly type: "learningmodule";
|
||||
}
|
||||
|
||||
export interface PlaceholderBlock extends BaseLearningContentBlock {
|
||||
readonly type: "placeholder";
|
||||
}
|
||||
|
|
@ -80,6 +84,7 @@ export type LearningContentBlock =
|
|||
| ResourceBlock
|
||||
| TestBlock
|
||||
| VideoBlock
|
||||
| LearningModuleBlock
|
||||
| PlaceholderBlock;
|
||||
|
||||
export type LearningContentType = LearningContentBlock["type"];
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ export function learningContentTypeData(t: LearningContentType): {
|
|||
return { title: "Dokument", icon: "it-icon-lc-document" };
|
||||
case "exercise":
|
||||
return { title: "Übung", icon: "it-icon-lc-exercise" };
|
||||
case "learningmodule":
|
||||
return { title: "Lernmodul", icon: "it-icon-lc-exercise" };
|
||||
case "media_library":
|
||||
return { title: "Mediathek", icon: "it-icon-lc-media-library" };
|
||||
case "online_training":
|
||||
|
|
@ -23,7 +25,7 @@ export function learningContentTypeData(t: LearningContentType): {
|
|||
case "test":
|
||||
return { title: "Test", icon: "it-icon-lc-test" };
|
||||
case "resource":
|
||||
return { title: "Ressource", icon: "it-icon-lc-resource" };
|
||||
return { title: "Reflexion", icon: "it-icon-lc-resource" };
|
||||
case "placeholder":
|
||||
return { title: "In Umsetzung", icon: "it-icon-lc-document" };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -840,7 +840,7 @@ def create_standard_learning_unit(
|
|||
parent=parent,
|
||||
contents=[
|
||||
(
|
||||
"exercise",
|
||||
"learningmodule",
|
||||
ExerciseBlockFactory(url=wbt_url),
|
||||
)
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue