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

clear-removedclj

(clear-removed data removed)

data with each removed file cleared, unless the form chose a new one.

`data` with each `removed` file cleared, unless the form chose a new one.
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

Names each many-to-many key on the form, so one with nothing chosen, which submits nothing of its own, still empties its links.

Names each many-to-many key on the form, so one with nothing chosen,
which submits nothing of its own, still empties its links.
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

no-file?clj

(no-file? v)

A file input left empty: the browser still sends the part, with no name.

A file input left empty: the browser still sends the part, with no name.
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

remove-file-paramclj

Names each file field whose stored file the form removes.

Names each file field whose stored file the form removes.
sourceraw docstring

shown-fieldsclj

(shown-fields entity-config)

The fields the entity form renders as a visible input, its many-to-many keys included.

The fields the entity form renders as a visible input, its many-to-many
keys included.
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

(split-link-params entity-config params)

params as [params links]: the params without the many-to-many keys of entity-config, and {key [id ...]} for each key submitted or named in links-param, empty when nothing is chosen. The service cleans the ids.

`params` as [params links]: the params without the many-to-many keys of
`entity-config`, and {key [id ...]} for each key submitted or named in
`links-param`, empty when nothing is chosen. The service cleans the ids.
sourceraw docstring

split-remove-paramsclj

(split-remove-params entity-config params)

params as [params removed]: without remove-file-param, and the file fields it names.

`params` as [params removed]: without `remove-file-param`, and the file
fields it names.
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