planner/lib/planner_web/templates/layout/live.html.leex

17 lines
616 B
Text

<main role="main" class="container">
<%= if live_flash(@flash, :info) do %>
<p class="alert alert-info" role="alert" phx-click="lv:clear-flash" phx-value-key="info">
<button class="delete" onclick="this.parentNode.remove();"></button>
<%= live_flash(@flash, :info) %>
</p>
<% end %>
<%= if live_flash(@flash, :error) do %>
<p class="alert alert-danger" role="alert" phx-click="lv:clear-flash" phx-value-key="error">
<button class="delete" onclick="this.parentNode.remove();"></button>
<%= live_flash(@flash, :error) %>
</p>
<% end %>
<%= @inner_content %>
</main>