{{/* Partial: search-block Paramètres: - showTitle: bool (afficher le titre, défaut: true) - action: string (URL de soumission du formulaire) - method: string (méthode du formulaire, défaut: GET) */}} {{ $showTitle := default true .showTitle }} {{ $action := .action }} {{ $method := default "GET" .method }} {{ $iconLocation := resources.Get "images/picto/location_on_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.svg" }} {{ $iconCalendar := resources.Get "images/picto/calendar_today_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.svg" }} {{ $iconSchedule := resources.Get "images/picto/schedule_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.svg" }} {{ $iconSearch := resources.Get "images/picto/search_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.svg" }} {{ $iconSwap := resources.Get "images/picto/sync_alt_24dp_1F1F1F_FILL0_wght400_GRAD0_opsz24.svg" }} {{ if $showTitle }} {{ site.Params.search.title }} {{ end }} {{ if $iconLocation }}{{ end }} {{ site.Params.search.labelDepart }} 0" @click.outside="departure.showResults = false" autocomplete="off" placeholder="{{ site.Params.search.placeholderDepart }}" :class="{ 'input-error': errors.departure }" required /> {{ if $iconSwap }}{{ end }} {{ if $iconLocation }}{{ end }} {{ site.Params.search.labelDestination }} 0" @click.outside="destination.showResults = false" autocomplete="off" placeholder="{{ site.Params.search.placeholderDestination }}" :class="{ 'input-error': errors.destination }" required /> {{ if $iconCalendar }}{{ end }} {{ site.Params.search.labelDate }} {{ if $iconSchedule }}{{ end }} {{ site.Params.search.labelHeure }} {{ if $iconSearch }}{{ end }} {{ site.Params.search.buttonText }}