Files
summercms/modules/cabana/testdata/roster/models/person/fields.yaml
Jakub Zych df5cace852 feat(12.1-02): writable foreign keys, locked relation options, invisible columns
- FieldRelationContract.WritableForeignKey makes a belongsTo field over a
  protected foreign key writable; the protected key list is unchanged
- cabana.RelationLockProvider names related ids an administrator may not add
  or remove: options and labels carry locked, and a create or update that
  changes the locked subset is 403 before any row is written
- columns.yaml invisible keeps a column searchable and out of the rows
- a controller implementing pact.FilterOptions serves a scope filter's
  choices before the model
- SPA: locked chips and options in RelationField, DataTable skips invisible
  columns
- README, docs, OpenAPI document, TS types and dist updated
2026-10-05 10:58:38 +02:00

48 lines
1.3 KiB
YAML

fields:
name:
label: acme.roster::lang.people.name
type: text
span: left
email:
label: acme.roster::lang.people.email
type: text
span: right
team:
label: acme.roster::lang.people.team
type: relation
nameFrom: name
emptyOption: acme.roster::lang.people.no_team
tags:
label: acme.roster::lang.people.tags
type: relation
nameFrom: name
slug:
label: acme.roster::lang.people.slug
type: text
preset: name
password:
label: acme.roster::lang.people.password
type: password
span: left
context: [create, update]
password_confirmation:
label: acme.roster::lang.people.password_confirmation
type: password
span: right
context: [create, update]
notify:
label: acme.roster::lang.people.notify
type: checkbox
default: true
context: create
permissions:
label: acme.roster::lang.people.permissions
type: permissioneditor
mode: radio
tab: acme.roster::lang.people.tab_permissions
context: update
joined_ip:
label: acme.roster::lang.people.joined_ip
type: text
context: preview