-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Currently, it is only possible to output fields in order [label, input, error]. My project CSS required the label to be rendered after the input field i.e. [input, label, error].
I had to override the whole formulator module to overcome this:
defp build_input_and_associated_tags(form, field, label_options, fun) do
error = HtmlError.html_error(form, field)
[
fun.(error),
build_label(form, field, label_options), # JA, swap label position
error.html
]
|> Enum.reject(&(is_nil(&1)))
endIt would be great if order was configurable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels