colonel_kurtz_ex v0.1.1 ColonelKurtz.FormHelpers View Source

Form helpers for phoenix.

Link to this section Summary

Link to this section Types

Link to this type

block_error()

View Source
block_error() :: %{errors: [map()], blocks: [block_error()]}
Link to this type

block_with_errors()

View Source
block_with_errors() :: %{
  content: map(),
  errors: [map()],
  blocks: [block_with_errors()]
}

Link to this section Functions

Link to this function

block_editor(form, field)

View Source
block_editor(form(), atom()) :: [Phoenix.HTML.safe()]
Link to this function

block_editor(f, field, opts)

View Source
block_editor(form(), atom(), json_opts()) :: [Phoenix.HTML.safe()]
Link to this function

block_errors_json(f, field)

View Source
block_errors_json(form(), atom()) :: binary()
Link to this function

block_errors_json(f, field, opts)

View Source
block_errors_json(form(), atom(), json_opts()) :: binary()
Link to this function

blocks_json(form, field)

View Source
blocks_json(form(), atom()) :: binary()
Link to this function

blocks_json(f, field, opts)

View Source
blocks_json(form(), atom(), json_opts()) :: binary()
Link to this function

blocks_json_from_blocks(blocks, errors, opts)

View Source
blocks_json_from_blocks(list() | binary(), nil | list(), json_opts()) ::
  binary()