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
This commit is contained in:
Tim 2017-07-07 23:15:03 +02:00
parent 1cbfc5d9cd
commit 06f481a262
2 changed files with 4 additions and 2 deletions

View File

@ -17,6 +17,8 @@ class Airport extends Model
'icao',
'name',
'location',
'lat',
'lon',
'fuel_100ll_cost',
'fuel_jeta_cost',
'fuel_mogas_cost',

View File

@ -16,12 +16,12 @@
<div class="form-group col-sm-6">
{!! Form::label('lat', 'Latitude:') !!}
{!! Form::number('lat', null, ['class' => 'form-control']) !!}
{!! Form::number('lat', null, ['class' => 'form-control', 'step' => '0.000001']) !!}
</div>
<div class="form-group col-sm-6">
{!! Form::label('lon', 'Longitude:') !!}
{!! Form::number('lon', null, ['class' => 'form-control']) !!}
{!! Form::number('lon', null, ['class' => 'form-control', 'step' => '0.000001']) !!}
</div>
<!-- Submit Field -->