2020-09-12 18:43:17 -04:00
|
|
|
<main role="main" class="container">
|
2021-02-26 12:07:33 -05:00
|
|
|
|
|
|
|
<%# phoenix flash alerts: %>
|
2021-03-01 13:42:26 -05:00
|
|
|
<div class="row justify-content-center">
|
2021-03-02 16:48:00 -05:00
|
|
|
<div class="col-md-12 col-lg-10 col-xl-9 ">
|
2021-03-01 13:42:26 -05:00
|
|
|
<%= for {kind, color} <- alert_kinds() do %>
|
|
|
|
<%= if flash_content = get_flash(@conn, kind) do %>
|
|
|
|
<div class="alert alert-<%= color %> alert-dismissible fade show" role="alert">
|
|
|
|
<%= flash_content %>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2021-02-26 12:07:33 -05:00
|
|
|
<% end %>
|
2021-03-01 13:42:26 -05:00
|
|
|
</div>
|
2021-02-26 12:07:33 -05:00
|
|
|
</div>
|
|
|
|
|
2020-09-12 18:43:17 -04:00
|
|
|
<%= @inner_content %>
|
2021-02-26 12:07:33 -05:00
|
|
|
|
2020-09-12 18:43:17 -04:00
|
|
|
</main>
|