Files
sm-bm-plugin/models/readings/fields.yaml
Jakub Zych 577fa14d3d feat: add admin screens, permissions and navigation
Seven admin controllers in a "Studia BM" navigation group, guarded by
jz.bm.access_courses, jz.bm.access_schedule and jz.bm.access_materials,
with Polish and English labels. Date and time fields are checked by the
models before a save and answered as 422 on the field.
2026-10-02 14:26:26 +02:00

34 lines
758 B
YAML

fields:
course:
label: jz.bm::lang.common.course
type: relation
nameFrom: name
span: left
required: true
is_required:
label: jz.bm::lang.readings.is_required
type: switch
span: right
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
sort_order:
label: jz.bm::lang.common.sort_order
type: number
span: left
default: 0