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 %>