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
This commit is contained in:
6
modules/cabana/testdata/roster/controllers/people/config_filter.yaml
vendored
Normal file
6
modules/cabana/testdata/roster/controllers/people/config_filter.yaml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
scopes:
|
||||
tagged:
|
||||
label: acme.roster::lang.people.tagged
|
||||
modelClass: Tag
|
||||
nameFrom: name
|
||||
scope: tagged
|
||||
@@ -2,6 +2,7 @@ list: ~/plugins/acme/roster/models/person/columns.yaml
|
||||
modelClass: Person
|
||||
title: acme.roster::lang.people.title
|
||||
recordUrl: acme/roster/people/preview/:id
|
||||
filter: config_filter.yaml
|
||||
recordsPerPage: 20
|
||||
showCheckboxes: true
|
||||
toolbar:
|
||||
|
||||
Reference in New Issue
Block a user