View Source Bonfire.UI.Common.ErrorHelpers (Bonfire v0.9.11-social-beta.6)

Conveniences for translating and building error messages.

Summary

Functions

Generates tag for inlined form input errors.

Translates an error message using gettext.

Translates the errors for a field from a keyword list of errors.

Functions

error_tag(form, field)

Generates tag for inlined form input errors.

TODO: use Surface.Components.Form.ErrorTag instead?

translate_error(arg)

Translates an error message using gettext.

translate_errors(errors, field)

Translates the errors for a field from a keyword list of errors.