Create / update entity handlers.
Create / update entity handlers.
(create-entity-handler admin-service schema-provider config)Handler for creating new entity.
Validates form data, creates entity, redirects to list with flash message.
Handler for creating new entity. Validates form data, creates entity, redirects to list with flash message.
(field-options-handler admin-service schema-provider _config)GET /:entity/options/:field?q= — the options of a foreign key's combobox: the parent rows whose label contains the typed text, or for a timezone field the zones. The user has to be able to view the entity and the parent whose labels this lists.
GET /:entity/options/:field?q= — the options of a foreign key's combobox: the parent rows whose label contains the typed text, or for a timezone field the zones. The user has to be able to view the entity and the parent whose labels this lists.
(lookup-handler admin-service schema-provider _config)GET /:entity/lookup?q= — the rows of an entity whose label contains the typed text, as combobox options, for a page outside the admin that picks one of them (a grant's scope). With ?id= instead, that row's label, for a page showing one by its id. The user has to be able to view the entity.
GET /:entity/lookup?q= — the rows of an entity whose label contains the typed text, as combobox options, for a page outside the admin that picks one of them (a grant's scope). With ?id= instead, that row's label, for a page showing one by its id. The user has to be able to view the entity.
(update-entity-handler admin-service schema-provider config)Handler for updating existing entity.
Validates form data, updates entity, redirects to list with flash message.
Handler for updating existing entity. Validates form data, updates entity, redirects to list with flash message.
(validate-field-handler admin-service schema-provider config)POST /:entity/validate-field — the field named __field, rendered again
with its errors, when the user changes it: the whole form is validated the
way a save would be (an edit as the record it would leave behind), and only
that field comes back, to replace itself. Nothing is written.
POST /:entity/validate-field — the field named `__field`, rendered again with its errors, when the user changes it: the whole form is validated the way a save would be (an edit as the record it would leave behind), and only that field comes back, to replace itself. Nothing is written.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |