diff --git a/front/public/locales/en/stdcm.json b/front/public/locales/en/stdcm.json
index f271eac2e70..1a1bb22837d 100644
--- a/front/public/locales/en/stdcm.json
+++ b/front/public/locales/en/stdcm.json
@@ -23,9 +23,11 @@
"invalidDate": "Select a date between {{startDate}} and {{endDate}}"
}
},
- "indicateAnteriorPath": "Indicate anterior path",
- "indicatePosteriorPath": "Indicate posterior path",
"leaveAt": "Leave at {{ time }}",
+ "linkedTrainDefaultCard": {
+ "anterior": "Indicate anterior path",
+ "posterior": "Indicate posterior path"
+ },
"loaderImageLegend": "Morning view of the locomotive shed at Le Bourget depot",
"noConfigurationFound": {
"title": "A configuration problem prevents you from performing a search",
@@ -98,14 +100,16 @@
"stdcmSimulationReport": "Path simulation report",
"trainPath": {
"addVia": "Add intermediate OP",
- "anteriorPath": "Anterior path",
"asSoonAsPossible": "as soon as possible",
"ch": "CH",
"ci": "CI",
"date": "Date",
"destination": "Destination",
+ "linkedTrain": {
+ "anterior": "Anterior path",
+ "posterior": "Posterior path"
+ },
"origin": "Origin",
- "posteriorPath": "Posterior path",
"preciseTime": "precise time",
"stopFor": "Minimum stop time",
"stopType": {
diff --git a/front/public/locales/fr/stdcm.json b/front/public/locales/fr/stdcm.json
index 82eb238f7a6..814dbc95fe2 100644
--- a/front/public/locales/fr/stdcm.json
+++ b/front/public/locales/fr/stdcm.json
@@ -26,6 +26,10 @@
"indicateAnteriorPath": "Indiquer le sillon antérieur",
"indicatePosteriorPath": "Indiquer le sillon postérieur",
"leaveAt": "Partir à {{ time }}",
+ "linkedTrainDefaultCard": {
+ "anterior": "Indiquer le sillon antérieur",
+ "posterior": "Indiquer le sillon postérieur"
+ },
"loaderImageLegend": "Vue matinale du relais de locomotives du dépôt du Bourget",
"noConfigurationFound": {
"title": "Un problème de configuration vous empêche de faire une recherche",
@@ -98,14 +102,16 @@
"stdcmSimulationReport": "Fiche simulation",
"trainPath": {
"addVia": "Ajouter un PR intermédiaire",
- "anteriorPath": "Sillon antérieur",
"asSoonAsPossible": "dès que possible",
"ch": "CH",
"ci": "CI",
"date": "Date",
"destination": "Destination",
+ "linkedTrain": {
+ "anterior": "Sillon antérieur",
+ "posterior": "Sillon postérieur"
+ },
"origin": "Origine",
- "posteriorPath": "Sillon postérieur",
"preciseTime": "horaire précis",
"stopFor": "Temps d'arrêt minimum",
"stopType": {
diff --git a/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx b/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx
index a33de1b4606..3459cec367e 100644
--- a/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx
+++ b/front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx
@@ -1,7 +1,6 @@
import { useEffect, useState } from 'react';
import { Button } from '@osrd-project/ui-core';
-import { ArrowDown, ArrowUp } from '@osrd-project/ui-icons';
import cx from 'classnames';
import { compact } from 'lodash';
import { useTranslation } from 'react-i18next';
@@ -145,11 +144,8 @@ const StdcmConfig = ({
}
- className="anterior-linked-path"
- linkedOp={{ extremityType: 'destination', id: origin.id }}
+ linkedTrainType="anterior"
+ linkedOpId={origin.id}
/>
@@ -162,11 +158,8 @@ const StdcmConfig = ({
}
- className="posterior-linked-path"
- linkedOp={{ extremityType: 'origin', id: destination.id }}
+ linkedTrainType="posterior"
+ linkedOpId={destination.id}
/>
+
{linkedTrainResults.map(({ trainName, origin, destination }, index) => (