rename int to num and add multinum for arrays of items - add a test case

This commit is contained in:
Hartmut Seichter 2024-04-21 15:47:44 +02:00
parent 2f393dd21c
commit 43cb7eff7e
4 changed files with 24 additions and 8 deletions

View file

@ -9,4 +9,9 @@ table.de.pdf:
all: table.en.pdf table.de.pdf
clean:
rm table.en.pdf table.de.pdf
rm -f table.en.pdf table.de.pdf
debug:
python ../../coursebuilder -s schema.yaml -m mod.cg.yaml -l de -f fields.yaml

View file

@ -16,7 +16,7 @@ form-of-instruction:
value: { 'lecture': 2, 'exersise': 1 }
term:
value: 1
value: [1, 3]
duration:
value: 1

View file

@ -181,12 +181,12 @@ workload:
#
# credits/ECTS
#
credits:
credits:
type: num
label: {
en: "credits and weight of mark",
de: "Kreditpunkte und Gewichtung der Note in der Gesamtnote"
}
type: int
template:
de: "${value}CP Gewichtung: ${value}CP von 120CP "
en: "${value}CP weight: ${value} / 120 "
@ -229,7 +229,7 @@ term:
de: "Semester",
en: "term"
}
type: int
type: multinum
template:
de: " ${value}. Semester"
en: " ${value}. semester"