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}>
|
||||
<.header>
|
||||
{@current_scope.user.email}
|
||||
<:actions>
|
||||
<.button variant="primary" navigate={~p"/biddings/new"}>
|
||||
<.icon name="hero-plus" /> Neues Gebot
|
||||
</.button>
|
||||
</:actions>
|
||||
</.header>
|
||||
|
||||
<%= if @bidding_round == 0 do %>
|
||||
<p>Keine Bietrunde aktiv. Aktuell kein Bieten möglich!</p>
|
||||
<% else %>
|
||||
<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 %>
|
||||
|
||||
<br />
|
||||
|
||||
Reference in New Issue
Block a user