Web.FormView (ExVenture v0.1.0) View Source

Link to this section Summary

Functions

The resource name, as an atom, for this view

Generate a checkbox field, styled properly

Label helper to optionally override the label text

Generate a number field, styled properly

Generate a text field, styled properly

Renders the given template locally.

Generate a select field, styled properly

Callback invoked when no template is found. By default it raises but can be customized to render a particular template.

Generate a text field, styled properly

Generate a textarea field, styled properly

Link to this section Functions

The resource name, as an atom, for this view

Link to this function

checkbox_field(form, field, opts \\ [], dopts \\ [])

View Source

Generate a checkbox field, styled properly

Link to this function

field_label(form, field, opts)

View Source

Label helper to optionally override the label text

Link to this function

number_field(form, field, opts \\ [], dopts \\ [])

View Source

Generate a number field, styled properly

Link to this function

password_field(form, field, opts \\ [], dopts \\ [])

View Source

Generate a text field, styled properly

Link to this function

render(template, assigns \\ %{})

View Source

Renders the given template locally.

Link to this function

select_field(form, field, options, opts \\ [], dopts \\ [])

View Source

Generate a select field, styled properly

Link to this function

template_not_found(template, assigns)

View Source

Specs

template_not_found(Phoenix.Template.name(), map()) :: no_return()

Callback invoked when no template is found. By default it raises but can be customized to render a particular template.

Link to this function

text_field(form, field, opts \\ [], dopts \\ [])

View Source

Generate a text field, styled properly

Link to this function

textarea_field(form, field, opts \\ [], dopts \\ [])

View Source

Generate a textarea field, styled properly