stein_phoenix v0.2.0 Stein.Phoenix.Views.FormView View Source

Helper functions for generating bootstrap forms

Link to this section Summary

Functions

Generate a checkbox field, styled properly

Label helper to optionally override the label text

Generate a file field, styled properly

Generate a number field, styled properly

Generate a text field, styled properly

Generate a select field, styled properly

Generate a text field, styled properly

Generate a textarea field, styled properly

Link to this section Functions

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

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

View Source

Generate a file field, styled properly

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

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

View Source

Generate a select field, styled properly

Link to this function

submit_button(text, dopts \\ [])

View Source
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