Liking cljdoc? Tell your friends :D

wagoe.admin.core.forms

What an entity form shows, which of a form's errors it cannot show next to a field, and the child rows a parent is created with (BOU-570).

What an entity form shows, which of a form's errors it cannot show next
to a field, and the child rows a parent is created with (BOU-570).
raw docstring

child-paramclj

(child-param entity index field)

The form parameter of field in child row index of entity.

The form parameter of `field` in child row `index` of `entity`.
sourceraw docstring

duplicate-row?clj

(duplicate-row? rel values)

Whether values hold two rows sent under one index: a field sent twice. A checkbox sends its hidden "false" and, when checked, "true".

Whether `values` hold two rows sent under one index: a field sent twice.
A checkbox sends its hidden "false" and, when checked, "true".
sourceraw docstring

filled-rowsclj

(filled-rows rel rows)

The rows of rel in rows with something typed in them.

The rows of `rel` in `rows` with something typed in them.
sourceraw docstring

max-child-rowsclj

The most rows of one has-many a create takes.

The most rows of one has-many a create takes.
sourceraw docstring

nested-relationshipsclj

(nested-relationships entity-config entity-configs)

The has-many entries of entity-config whose children are created in the parent's create form: editable, with a :min, and a child the admin can create from a form. Each gets the child's config as :entity-config, its foreign key as :fk, and as :fields the child's editable fields without it. entity-configs maps entity name to config.

The has-many entries of `entity-config` whose children are created in the
parent's create form: editable, with a :min, and a child the admin can
create from a form. Each gets the child's config as :entity-config, its
foreign key as :fk, and as :fields the child's editable fields without it.
`entity-configs` maps entity name to config.
sourceraw docstring

off-form-errorsclj

(off-form-errors entity-config errors)

The entries of errors ({field [message]}) on fields the form does not show, so no input can carry them.

The entries of `errors` ({field [message]}) on fields the form does not
show, so no input can carry them.
sourceraw docstring

shown-fieldsclj

(shown-fields entity-config)

The fields the entity form renders as a visible input.

The fields the entity form renders as a visible input.
sourceraw docstring

split-child-paramsclj

(split-child-params params)

params as [parent-params rows]: the parent's own fields, and {child-entity [[index {field value}] ...]} in index order, with field names as strings, as a form submits them. A __child. parameter whose index is not a small number is dropped.

`params` as [parent-params rows]: the parent's own fields, and
{child-entity [[index {field value}] ...]} in index order, with field
names as strings, as a form submits them. A `__child.` parameter whose
index is not a small number is dropped.
sourceraw docstring

too-fewclj

(too-few rels rows)

{child-entity {:min :count :label}} for each of rels given fewer filled rows than its :min.

{child-entity {:min :count :label}} for each of `rels` given fewer filled
rows than its :min.
sourceraw docstring

too-manyclj

(too-many rels rows)

{child-entity {:max :count :label}} for each of rels given more rows than max-child-rows, blank ones included: each is parsed.

{child-entity {:max :count :label}} for each of `rels` given more rows
than `max-child-rows`, blank ones included: each is parsed.
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