Liking cljdoc? Tell your friends :D

wagoe.admin.shell.http.handlers.crud

Create / update entity handlers.

Create / update entity handlers.
raw docstring

create-entity-handlerclj

(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.
sourceraw docstring

field-options-handlerclj

(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.
sourceraw docstring

lookup-handlerclj

(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.
sourceraw docstring

update-entity-handlerclj

(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.
sourceraw docstring

validate-field-handlerclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close