The schedule showed a lecturer only where the session notes named one (Globalizacja), so the student plan had nobody under the other courses. The session JSON now carries the course lecturer in its course ref and an optional per-session lecturer (new nullable column, admin field, seed key) for courses shared between two people. The student app shows the session's own lecturer or, failing that, the course's.
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
fields:
|
|
course:
|
|
label: jz.bm::lang.common.course
|
|
type: relation
|
|
nameFrom: name
|
|
span: left
|
|
required: true
|
|
meeting:
|
|
label: jz.bm::lang.sessions.meeting
|
|
type: relation
|
|
nameFrom: number
|
|
span: right
|
|
emptyOption: jz.bm::lang.common.none
|
|
starts_at:
|
|
label: jz.bm::lang.sessions.starts_at
|
|
type: datepicker
|
|
mode: datetime
|
|
format: d.m.Y H:i
|
|
firstDay: 1
|
|
span: left
|
|
required: true
|
|
ends_at:
|
|
label: jz.bm::lang.sessions.ends_at
|
|
type: datepicker
|
|
mode: datetime
|
|
format: d.m.Y H:i
|
|
firstDay: 1
|
|
span: right
|
|
required: true
|
|
room:
|
|
label: jz.bm::lang.sessions.room
|
|
type: text
|
|
span: left
|
|
kind:
|
|
label: jz.bm::lang.sessions.kind
|
|
type: text
|
|
span: right
|
|
lecturer:
|
|
label: jz.bm::lang.sessions.lecturer
|
|
comment: jz.bm::lang.sessions.lecturer_comment
|
|
type: text
|
|
span: left
|
|
is_online:
|
|
label: jz.bm::lang.sessions.is_online
|
|
type: switch
|
|
span: right
|
|
notes:
|
|
label: jz.bm::lang.common.notes
|
|
type: textarea
|
|
size: small
|