PhoenixOauth2Provider v0.4.1 PhoenixOauth2Provider.ViewHelpers View Source

Helper functions for PhoenixOauth2Provider Views.

Link to this section Summary

Functions

Generates tag for inlined form input errors

Translates an error message using gettext

Link to this section Functions

Link to this function error_tag(form, field) View Source
error_tag(Ecto.Changeset.t(), atom()) :: Phoenix.HTML.safe() | nil

Generates tag for inlined form input errors.

Link to this function translate_error(msg) View Source
translate_error({binary(), Keyword.t()}) :: binary()
translate_error(binary()) :: binary()

Translates an error message using gettext.