diff --git a/lib/arrow_web/live/shuttle_live/shuttle_live.ex b/lib/arrow_web/live/shuttle_live/shuttle_live.ex index 97315460..19f1b022 100644 --- a/lib/arrow_web/live/shuttle_live/shuttle_live.ex +++ b/lib/arrow_web/live/shuttle_live/shuttle_live.ex @@ -100,6 +100,19 @@ defmodule ArrowWeb.ShuttleViewLive do +

define stops

+ <.inputs_for :let={f_route} field={f[:routes]} as={:routes_with_stops}> +

direction <%= input_value(f_route, :direction_id) %>

+ <.inputs_for :let={f_route_stop} field={f_route[:route_stops]}> + <.input field={f_route_stop[:time_to_next_stop]} type="number" label="Time to next stop" /> + + + + <:actions> <.button>Save Shuttle