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.
This commit is contained in:
Jakub Zych
2026-10-02 14:26:26 +02:00
parent 1046237771
commit 577fa14d3d
42 changed files with 1234 additions and 11 deletions

View File

@@ -0,0 +1,17 @@
columns:
title:
label: jz.bm::lang.common.title
searchable: true
author:
label: jz.bm::lang.readings.author
searchable: true
course:
label: jz.bm::lang.common.course
relation: course
select: name
searchable: true
is_required:
label: jz.bm::lang.readings.is_required
type: switch
sort_order:
label: jz.bm::lang.common.sort_order

View File

@@ -0,0 +1,33 @@
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