Moving the "Gebot abgeben" button down & only show it if a bidding round is running.
This commit is contained in:
@ -10,17 +10,17 @@ defmodule BeetRoundServerWeb.BiddingLive.Index do
|
|||||||
<Layouts.app flash={@flash} current_scope={@current_scope}>
|
<Layouts.app flash={@flash} current_scope={@current_scope}>
|
||||||
<.header>
|
<.header>
|
||||||
{@current_scope.user.email}
|
{@current_scope.user.email}
|
||||||
<:actions>
|
|
||||||
<.button variant="primary" navigate={~p"/biddings/new"}>
|
|
||||||
<.icon name="hero-plus" /> Neues Gebot
|
|
||||||
</.button>
|
|
||||||
</:actions>
|
|
||||||
</.header>
|
</.header>
|
||||||
|
|
||||||
<%= if @bidding_round == 0 do %>
|
<%= if @bidding_round == 0 do %>
|
||||||
<p>Keine Bietrunde aktiv. Aktuell kein Bieten möglich!</p>
|
<p>Keine Bietrunde aktiv. Aktuell kein Bieten möglich!</p>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p>Aktive Bietrunde: {@bidding_round} - Es kann geboten werden!</p>
|
<p>Aktive Bietrunde: {@bidding_round} - Es kann geboten werden!</p>
|
||||||
|
<div align="right">
|
||||||
|
<.button variant="primary" navigate={~p"/biddings/new"}>
|
||||||
|
<.icon name="hero-plus" /> Neues Gebot
|
||||||
|
</.button>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
Reference in New Issue
Block a user