From ccbeb532888d005da8d8dc33ad053ba9853bd2e5 Mon Sep 17 00:00:00 2001 From: Eddie Maldonado Date: Thu, 7 Nov 2024 16:19:49 -0500 Subject: [PATCH] wip: stops section of shuttle form --- lib/arrow_web/live/shuttle_live/shuttle_live.ex | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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