- {times.map((time, index) => (
+ {trips.length > 0 ? (
+
+ {trips.map((trip, index) => (
-
{time}
-
+
+
handleUpdateTrip(index, { departureTime: e.target.value })}
+ className="input max-w-[130px]"
+ />
+
+ {getTripLabels(toApiTrip(trip), routeStops).map(label => (
+
+ {label}
+
+ ))}
+
+
+
+
+
+
+
+
+
+
+
+
+
Только по дням
+
+ {WEEKDAYS.map(day => (
+
+ ))}
+
+
+
+
Кроме дней
+
+ {WEEKDAYS.map(day => (
+
+ ))}
+
+
+
+
+
))}
@@ -582,4 +731,165 @@ function ScheduleEditor({ schedule, routeName, onSave, onCancel }) {