diff --git a/config.yaml b/config.yaml index b361c40..53e2a50 100644 --- a/config.yaml +++ b/config.yaml @@ -73,6 +73,10 @@ views: files: - web/layouts/layout.html - web/layouts/_partials/mainmenu.html + search: + results: + files: + - web/layouts/search/results.html dashboard: files: - web/layouts/dashboard/_partials/agenda-widget.html diff --git a/web/layouts/layout.html b/web/layouts/layout.html index 9169f8f..6ef0835 100644 --- a/web/layouts/layout.html +++ b/web/layouts/layout.html @@ -80,7 +80,7 @@
-
+
@@ -89,7 +89,7 @@
+ placeholder="Rechercher..." type="search" name="q">
diff --git a/web/layouts/search/results.html b/web/layouts/search/results.html new file mode 100644 index 0000000..6625ff2 --- /dev/null +++ b/web/layouts/search/results.html @@ -0,0 +1,144 @@ +{{define "content"}} +
+

Résultats pour « {{.ViewState.query}} »

+ + {{if moduleAvailable "beneficiaries"}} +
+

+ Bénéficiaires + {{len .ViewState.beneficiaries}} +

+ {{if .ViewState.beneficiaries}} +
+ + + + + + + + + + + {{range .ViewState.beneficiaries}} + + + + + + + {{end}} + +
NomTéléphoneAdresseVoir
+
+
+ +
+
+
{{.Data.first_name}} {{.Data.last_name}}
+
{{.Data.email}}
+
+
+
{{.Data.phone_number}}{{if .Data.address}}{{.Data.address.properties.label}}{{end}} + Voir +
+
+ {{else}} +

Aucun résultat

+ {{end}} +
+ {{end}} + + {{if moduleAvailable "solidarity_transport"}} +
+

+ Conducteurs solidaires + {{len .ViewState.solidarity_drivers}} +

+ {{if .ViewState.solidarity_drivers}} +
+ + + + + + + + + + + + {{range .ViewState.solidarity_drivers}} + + + + + + + + {{end}} + +
NomAdresseTéléphoneProfil validéVoir
{{.Data.first_name}} {{.Data.last_name}}{{if .Data.address}}{{.Data.address.properties.label}}{{end}}{{.Data.phone_number}} + {{if solidarityDriverValidatedProfile . (solidarityDocuments .ID)}} + Oui + {{else}} + Non + {{end}} + + Voir +
+
+ {{else}} +

Aucun résultat

+ {{end}} +
+ {{end}} + + {{if moduleAvailable "organized_carpool"}} +
+

+ Conducteurs covoiturage + {{len .ViewState.organized_carpool_drivers}} +

+ {{if .ViewState.organized_carpool_drivers}} +
+ + + + + + + + + + + + + {{range .ViewState.organized_carpool_drivers}} + + + + + + + + + {{end}} + +
NomAdresse départAdresse destinationTéléphoneProfil validéVoir
{{.Data.first_name}} {{.Data.last_name}}{{if .Data.address}}{{.Data.address.properties.label}}{{end}}{{if .Data.address_destination}}{{.Data.address_destination.properties.label}}{{end}}{{.Data.phone_number}} + {{if carpoolDriverValidatedProfile . (carpoolDocuments .ID)}} + Oui + {{else}} + Non + {{end}} + + Voir +
+
+ {{else}} +

Aucun résultat

+ {{end}} +
+ {{end}} +
+{{end}} diff --git a/web/public/css/main.css b/web/public/css/main.css index 3fd13a2..f2202fd 100644 --- a/web/public/css/main.css +++ b/web/public/css/main.css @@ -3197,6 +3197,13 @@ } } } + .hover\:text-co-blue\/80 { + &:hover { + @media (hover: hover) { + color: color-mix(in oklab, var(--color-co-blue) 80%, transparent); + } + } + } .hover\:text-co-green { &:hover { @media (hover: hover) {