diff --git a/config.yaml b/config.yaml index 8121a11..3169bf2 100644 --- a/config.yaml +++ b/config.yaml @@ -114,6 +114,7 @@ views: files: - web/layouts/journeys/display_groups.html - web/layouts/journeys/_partials/map.html + - web/layouts/_partials/address_autocomplete.html support: request: files: diff --git a/web/layouts/journeys/display_groups.html b/web/layouts/journeys/display_groups.html index 90c2641..a9ce09c 100644 --- a/web/layouts/journeys/display_groups.html +++ b/web/layouts/journeys/display_groups.html @@ -122,6 +122,87 @@ + + +
+
+ +
+

Ajouter un passager

+
+
+
+ + +
+ + + + +
    + + + + +
+
+
+ + {{ $departureField := "departure" }} + {{ $departureLabel := "Départ" }} + {{ $departure := .ViewState.departure }} + {{ template "address_autocomplete" dict "FieldName" $departureField "FieldLabel" $departureLabel "Address" $departure }} + + {{ $destinationField := "destination" }} + {{ $destinationLabel := "Destination" }} + {{ $destination := .ViewState.destination }} + {{ template "address_autocomplete" dict "FieldName" $destinationField "FieldLabel" $destinationLabel "Address" $destination }} + + +
+
+ + + +
+
+
+ +
@@ -272,72 +353,7 @@ -
-
- -
-

Ajouter un passager

-
-
-
- - -
- - - - -
    - - - - -
-
-
- - - -
-
-
- -
-
+