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).
55 lines
1.4 KiB
YAML
55 lines
1.4 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
|
|
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
|