styling improvements, including implementing alerts with phx hook to clear flash after bootstrap alert close event
This commit is contained in:
parent
9ddb8e3978
commit
951249be93
12 changed files with 100 additions and 18 deletions
lib/bones73k_web/views
|
|
@ -7,4 +7,15 @@ defmodule Bones73kWeb.LayoutView do
|
|||
true -> Keyword.update(opts, :class, "active", fn c -> "#{c} active" end)
|
||||
end
|
||||
end
|
||||
|
||||
def alert_kinds do
|
||||
[
|
||||
success: "alert alert-success",
|
||||
info: "alert alert-info",
|
||||
error: "alert alert-danger",
|
||||
warning: "alert alert-warning",
|
||||
primary: "alert alert-primary",
|
||||
secondary: "alert alert-secondary"
|
||||
]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue