Moving the "Gebot abgeben" button down & only show it if a bidding round is running.

This commit is contained in:
2026-02-19 16:18:30 +01:00
parent 15e21d34e8
commit 24eeacc425

View File

@ -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 />