Files
sm-bm-plugin/models/materials/fields.yaml
Jakub Zych ff2f97eb2b feat: materials by zjazd in the student API and admin
The material admin form gets the "Na zjazd" picker, every student
material JSON carries meeting_id, and GET /materials accepts meeting=
inside the published-only scope, so the Pulpit hero can list the
zjazd's materials next to its readings.
2026-10-27 01:44:38 +01:00

62 lines
1.6 KiB
YAML

fields:
title:
label: jz.bm::lang.common.title
type: text
span: left
required: true
type:
label: jz.bm::lang.materials.type
type: dropdown
span: right
required: true
options:
pdf: jz.bm::lang.material_types.pdf
notatka: jz.bm::lang.material_types.notatka
link: jz.bm::lang.material_types.link
inne: jz.bm::lang.material_types.inne
course:
label: jz.bm::lang.common.course
type: relation
nameFrom: name
span: left
emptyOption: jz.bm::lang.common.none
published_at:
label: jz.bm::lang.materials.published_at
type: datepicker
mode: datetime
format: d.m.Y H:i
firstDay: 1
span: right
comment: jz.bm::lang.materials.published_at_comment
source:
label: jz.bm::lang.common.source
type: text
span: left
url:
label: jz.bm::lang.common.url
type: text
span: right
meeting:
label: jz.bm::lang.common.meeting
type: relation
nameFrom: number
span: left
emptyOption: jz.bm::lang.common.none
comment: jz.bm::lang.common.meeting_comment
tags:
label: jz.bm::lang.materials.tags
type: relation
nameFrom: name
files:
label: jz.bm::lang.materials.files
type: fileupload
mode: file
maxFilesize: 50
maxFiles: 20
useCaption: true
body:
label: jz.bm::lang.materials.body
type: textarea
size: giant
comment: jz.bm::lang.materials.body_comment