From 96c17d33bcf3b5c15b1162520c2f9b3fdbb86441 Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Tue, 25 May 2021 22:33:02 +0300 Subject: [PATCH] Add ability to search Flights by Code (#1205) * Edit Search Form Add ability to search via flight/route code (technically it was possible but the field was not present in the blade) * Add Code (EN) * Add Code (ES) * Add Code (IT) * Add Code (PT-BR) * FlightCode => Code * FlightCode => Code * FlightCode => Code * FlightCode => Code * FlightCode => Code --- resources/lang/en/flights.php | 1 + resources/lang/es/flights.php | 1 + resources/lang/it/flights.php | 1 + resources/lang/pt-br/flights.php | 1 + resources/views/layouts/default/flights/search.blade.php | 5 +++++ 5 files changed, 9 insertions(+) diff --git a/resources/lang/en/flights.php b/resources/lang/en/flights.php index 2c9227d2..1ee5790f 100644 --- a/resources/lang/en/flights.php +++ b/resources/lang/en/flights.php @@ -5,6 +5,7 @@ return [ 'flighttime' => 'Flight Time', 'flighttype' => 'Flight Type', 'flighthours' => 'Flight Hours', + 'code' => 'Code', 'callsign' => 'Callsign', 'route' => 'Route', 'mybid' => 'My Bids', diff --git a/resources/lang/es/flights.php b/resources/lang/es/flights.php index b24c3b9e..6ffa7271 100644 --- a/resources/lang/es/flights.php +++ b/resources/lang/es/flights.php @@ -5,6 +5,7 @@ return [ 'flighttime' => 'Tiempo de vuelo', 'flighttype' => 'Tipo de vuelo', 'flighthours' => 'Horas de vuelo', + 'code' => 'Código', 'callsign' => 'Indicativo', 'route' => 'Ruta', 'mybid' => 'Mis reservas', diff --git a/resources/lang/it/flights.php b/resources/lang/it/flights.php index 5bf1cfa5..6f13a2f7 100644 --- a/resources/lang/it/flights.php +++ b/resources/lang/it/flights.php @@ -5,6 +5,7 @@ return [ 'flighttime' => 'Tempo di Volo', 'flighttype' => 'Tipo di Volo', 'flighthours' => 'Ore di Volo', + 'code' => 'Codice', 'callsign' => 'Nominativo', 'route' => 'Rotta', 'mybid' => 'Mie Prenotazioni', diff --git a/resources/lang/pt-br/flights.php b/resources/lang/pt-br/flights.php index d6778cdf..33e1045f 100755 --- a/resources/lang/pt-br/flights.php +++ b/resources/lang/pt-br/flights.php @@ -5,6 +5,7 @@ return [ 'flighttime' => 'Tempo do Voo', 'flighttype' => 'Tipo de Voo', 'flighthours' => 'Horas de Voo', + 'code' => 'Código', 'callsign' => 'Indicativo', 'route' => 'Rota', 'mybid' => 'Minhas Reservas', diff --git a/resources/views/layouts/default/flights/search.blade.php b/resources/views/layouts/default/flights/search.blade.php index 7f505777..5cb74253 100644 --- a/resources/views/layouts/default/flights/search.blade.php +++ b/resources/views/layouts/default/flights/search.blade.php @@ -24,6 +24,11 @@ {{ Form::text('flight_number', null, ['class' => 'form-control']) }} +
+

@lang('flights.code')

+ {{ Form::text('route_code', null, ['class' => 'form-control']) }} +
+

@lang('airports.departure')

{{ Form::select('dep_icao', $airports, null , ['class' => 'form-control select2']) }}