Location and performer selects.

This commit is contained in:
codevictory
2021-03-31 00:07:22 +03:00
parent 1239dd7fd7
commit 05eeb8cbf4

View File

@@ -9,6 +9,14 @@
<%= datetime_select f, :time %> <%= datetime_select f, :time %>
<%= error_tag 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 %> <%= label f, :description %>
<%= text_input f, :description %> <%= text_input f, :description %>
<%= error_tag f, :description %> <%= error_tag f, :description %>