analytics/lib/plausible_web/views/error_helpers.ex
Uku Taht 32937c53d1
Upgrade tailwind to 1.2.0 (#42)
* Upgrade config file

* Upgrade grey colour

* Update styles for dashboard

* Update styles for new site flow

* Update styles for user settings

* Update site setting styles

* Update other pages

* Adjust spacing

* Update last grey rules

* Purge css
2020-03-06 11:11:38 +02:00

10 lines
258 B
Elixir

defmodule PlausibleWeb.ErrorHelpers do
use Phoenix.HTML
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(:div, elem(error, 0), class: "text-red-500 text-xs italic mt-3")
end)
end
end