From 05eeb8cbf4d8e21b248ccef149da853a896de29e Mon Sep 17 00:00:00 2001 From: codevictory Date: Wed, 31 Mar 2021 00:07:22 +0300 Subject: [PATCH] Location and performer selects. --- lib/runosaari_web/templates/performance/form.html.eex | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/runosaari_web/templates/performance/form.html.eex b/lib/runosaari_web/templates/performance/form.html.eex index 9805aae..55fae0e 100644 --- a/lib/runosaari_web/templates/performance/form.html.eex +++ b/lib/runosaari_web/templates/performance/form.html.eex @@ -9,6 +9,14 @@ <%= datetime_select f, :time %> <%= error_tag f, :time %> + <%= label f, :location_id %> + <%= select f, :location_id, Runosaari.Area.list_locations |> Enum.map(fn loc -> {loc.name, loc.id} end)%> + <%= error_tag f, :location_id %> + + <%= label f, :performer_id %> + <%= multiple_select f, :performer_id, Runosaari.Registration.list_performers |> Enum.map(fn perf -> {perf.fname <> " " <> perf.lname, perf.id} end) %> + <%= error_tag f, :performer_id %> + <%= label f, :description %> <%= text_input f, :description %> <%= error_tag f, :description %>