rename int to num and add multinum for arrays of items - add a test case
This commit is contained in:
parent
2f393dd21c
commit
43cb7eff7e
4 changed files with 24 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ form-of-instruction:
|
|||
value: { 'lecture': 2, 'exersise': 1 }
|
||||
|
||||
term:
|
||||
value: 1
|
||||
value: [1, 3]
|
||||
|
||||
duration:
|
||||
value: 1
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue