From 06f481a2625f3f17ef0db6364937f309e089600e Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 7 Jul 2017 23:15:03 +0200 Subject: [PATCH] Fix adding of airport Fix the adding of airport. It will now save the lat & Long and allow to put decimals in rather than just a rounded number --- app/Models/Airport.php | 2 ++ resources/views/admin/airports/fields.blade.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Models/Airport.php b/app/Models/Airport.php index 2efeff83..f41b7e12 100644 --- a/app/Models/Airport.php +++ b/app/Models/Airport.php @@ -17,6 +17,8 @@ class Airport extends Model 'icao', 'name', 'location', + 'lat', + 'lon', 'fuel_100ll_cost', 'fuel_jeta_cost', 'fuel_mogas_cost', diff --git a/resources/views/admin/airports/fields.blade.php b/resources/views/admin/airports/fields.blade.php index d5be5cf3..1282f7d3 100644 --- a/resources/views/admin/airports/fields.blade.php +++ b/resources/views/admin/airports/fields.blade.php @@ -16,12 +16,12 @@
{!! Form::label('lat', 'Latitude:') !!} - {!! Form::number('lat', null, ['class' => 'form-control']) !!} + {!! Form::number('lat', null, ['class' => 'form-control', 'step' => '0.000001']) !!}
{!! Form::label('lon', 'Longitude:') !!} - {!! Form::number('lon', null, ['class' => 'form-control']) !!} + {!! Form::number('lon', null, ['class' => 'form-control', 'step' => '0.000001']) !!}