The Pulpit hero lists what to read for the current or next zjazd, so readings and materials get a nullable meeting_id (FK to jz_bm_meetings, ON DELETE SET NULL, indexed). The reading admin form gets a "Na zjazd" picker, the student reading JSON carries meeting_id, and the management /readings records filter and validate it.
31 lines
838 B
YAML
31 lines
838 B
YAML
# The reading form inside the course form's relation manager: the course is
|
|
# the parent, so there is no course picker, and a relation form has no
|
|
# relation pickers, so the meeting (zjazd) is set on the readings screen.
|
|
fields:
|
|
title:
|
|
label: jz.bm::lang.common.title
|
|
type: text
|
|
span: left
|
|
required: true
|
|
author:
|
|
label: jz.bm::lang.readings.author
|
|
type: text
|
|
span: right
|
|
source:
|
|
label: jz.bm::lang.common.source
|
|
type: text
|
|
span: left
|
|
url:
|
|
label: jz.bm::lang.common.url
|
|
type: text
|
|
span: right
|
|
is_required:
|
|
label: jz.bm::lang.readings.is_required
|
|
type: switch
|
|
span: left
|
|
sort_order:
|
|
label: jz.bm::lang.common.sort_order
|
|
type: number
|
|
span: right
|
|
default: 0
|