Inputs

A wrapper for Phoenix.HTML.Form.html.inputs_for/3


Additionally, adds the generated form instance that is returned by inputs_for/3 into the context, making it available to any child input.


# Public API

Name Description Type Values Default
form The parent form.

It should either be a Phoenix.HTML.Form emitted by form_for or an atom.

:form
for The name of the field related to the child inputs.

:atom
opts Extra options for inputs_for/3.

See Phoenix.HTML.Form.html.inputs_for/4 for the available options.

:keyword []