set/add timezone information for airports and users

This commit is contained in:
Nabeel Shahzad
2017-12-06 16:07:25 -06:00
parent 43e9603fbc
commit f0309e65de
13 changed files with 124 additions and 52 deletions

View File

@@ -25,6 +25,11 @@
{!! Form::number('lon', null, ['class' => 'form-control', 'step' => '0.000001']) !!}
</div>
<div class="form-group col-sm-6">
{!! Form::label('timezone', 'Timezone:') !!}
{!! Form::select('timezone', $timezones, null, ['id' => 'timezone', 'class' => 'select2' ]); !!}
</div>
<!-- Submit Field -->
<div class="form-group col-sm-12">
<div class="pull-right">

View File

@@ -4,6 +4,7 @@
<th>ICAO</th>
<th>Name</th>
<th>Location</th>
<th>Timezone</th>
<th style="text-align: center;">100LL</th>
<th style="text-align: center;">JetA</th>
<th style="text-align: center;">MOGAS</th>
@@ -15,6 +16,7 @@
<td>{!! $airport->icao !!}</td>
<td>{!! $airport->name !!}</td>
<td>{!! $airport->location !!}</td>
<td>{!! $airport->timezone !!}</td>
<td style="text-align: center;">
<a class="inline" href="#" data-pk="{!! $airport->id !!}" data-name="fuel_100ll_cost">{!! $airport->fuel_100ll_cost !!}</a>
</td>

View File

@@ -1,13 +1,18 @@
<div class="row">
<div class="form-group col-sm-6">
<div class="form-group col-sm-4">
{!! Form::label('name', 'Name:') !!}
{!! Form::text('name', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group col-sm-6">
<div class="form-group col-sm-4">
{!! Form::label('email', 'Email:') !!}
{!! Form::text('email', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group col-sm-4">
{!! Form::label('timezone', 'Timezone:') !!}
{!! Form::select('timezone', $timezones, null, ['id' => 'timezone', 'class' => 'select2' ]); !!}
</div>
</div>
<div class="row">