Using drop down menus for depot wishes in bidding form. (Using old depot entries for now.)
This commit is contained in:
@ -21,8 +21,44 @@ defmodule BeetRoundServerWeb.BiddingLive.Form do
|
|||||||
<% else %>
|
<% else %>
|
||||||
<.form for={@form} id="bidding-form" phx-change="validate" phx-submit="save">
|
<.form for={@form} id="bidding-form" phx-change="validate" phx-submit="save">
|
||||||
<.input field={@form[:amount]} type="number" label="Betrag" />
|
<.input field={@form[:amount]} type="number" label="Betrag" />
|
||||||
<.input field={@form[:depot_wish_one]} type="text" label="Depot Wunsch 1" />
|
<.input
|
||||||
<.input field={@form[:depot_wish_two]} type="text" label="Depot Wunsch 2" />
|
field={@form[:depot_wish_one]}
|
||||||
|
type="select"
|
||||||
|
label="Depot Wunsch 1"
|
||||||
|
options={[
|
||||||
|
{"", ""},
|
||||||
|
{"KlimaWerkStadt (1)", "KlimaWerkStadt"},
|
||||||
|
{"Puramila (2)", "Puramila"},
|
||||||
|
{"Eine Welt Aktion (3)", "Eine Welt Aktion"},
|
||||||
|
{"Hof Buntentor (4)", "Hof Buntentor"},
|
||||||
|
{"Mädchen-Kulturhaus (5)", "Mädchen-Kulturhaus"},
|
||||||
|
{"neues Depot im Viertel (6)", "neues Depot im Viertel"},
|
||||||
|
{"Creative Hub (7)", "Creative Hub"},
|
||||||
|
{"Klimazone (8)", "Klimazone"},
|
||||||
|
{"Garage Walle (9)", "Garage Walle"},
|
||||||
|
{"Hof Riede (A)", "Hof Riede"},
|
||||||
|
{"Thedinghausen (B)", "Thedinghausen"}
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
<.input
|
||||||
|
field={@form[:depot_wish_two]}
|
||||||
|
type="select"
|
||||||
|
label="Depot Wunsch 2"
|
||||||
|
options={[
|
||||||
|
{"", ""},
|
||||||
|
{"KlimaWerkStadt (1)", "KlimaWerkStadt"},
|
||||||
|
{"Puramila (2)", "Puramila"},
|
||||||
|
{"Eine Welt Aktion (3)", "Eine Welt Aktion"},
|
||||||
|
{"Hof Buntentor (4)", "Hof Buntentor"},
|
||||||
|
{"Mädchen-Kulturhaus (5)", "Mädchen-Kulturhaus"},
|
||||||
|
{"neues Depot im Viertel (6)", "neues Depot im Viertel"},
|
||||||
|
{"Creative Hub (7)", "Creative Hub"},
|
||||||
|
{"Klimazone (8)", "Klimazone"},
|
||||||
|
{"Garage Walle (9)", "Garage Walle"},
|
||||||
|
{"Hof Riede (A)", "Hof Riede"},
|
||||||
|
{"Thedinghausen (B)", "Thedinghausen"}
|
||||||
|
]}
|
||||||
|
/>
|
||||||
<.input field={@form[:bidding_round]} type="number" readonly hidden />
|
<.input field={@form[:bidding_round]} type="number" readonly hidden />
|
||||||
<footer>
|
<footer>
|
||||||
<.button phx-disable-with="Bearbeitung..." variant="primary">Gebot abgeben</.button>
|
<.button phx-disable-with="Bearbeitung..." variant="primary">Gebot abgeben</.button>
|
||||||
|
|||||||
Reference in New Issue
Block a user