Files
sm-bm-plugin/models/readings/fields_course.yaml
Jakub Zych 71b848a376 Adopt SummerCMS v0.1.1 admin features
Datepickers on native time.Time / lagoon.Date fields, file uploads on
materials, readings and class sessions managed from the course form
(course_id made nullable).
2026-10-03 06:03:34 +02:00

30 lines
737 B
YAML

# The reading form inside the course form's relation manager: the course is
# the parent, so there is no course picker.
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