Add ICAO field for aircraft #111

This commit is contained in:
Nabeel Shahzad
2018-01-03 12:41:01 -06:00
parent 4a5c11fc34
commit 15726d0610
2 changed files with 15 additions and 6 deletions

View File

@@ -12,28 +12,35 @@
</div> </div>
<div class="row"> <div class="row">
<div class="form-group col-sm-4">
{!! Form::label('icao', 'ICAO:') !!}
{!! Form::text('icao', null, ['class' => 'form-control']) !!}
</div>
<!-- Registration Field --> <!-- Registration Field -->
<div class="form-group col-sm-6"> <div class="form-group col-sm-4">
{!! Form::label('registration', 'Registration:') !!} {!! Form::label('registration', 'Registration:') !!}
{!! Form::text('registration', null, ['class' => 'form-control']) !!} {!! Form::text('registration', null, ['class' => 'form-control']) !!}
</div> </div>
<!-- Tail Number Field --> <!-- Tail Number Field -->
<div class="form-group col-sm-6"> <div class="form-group col-sm-4">
{!! Form::label('tail_number', 'Tail Number:') !!} {!! Form::label('tail_number', 'Tail Number:') !!}
{!! Form::text('tail_number', null, ['class' => 'form-control']) !!} {!! Form::text('tail_number', null, ['class' => 'form-control']) !!}
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<!-- Active Field --> <!-- Active Field -->
<div class="form-group col-12"> <div class="form-group col-6">
{!! Form::label('active', 'Active:') !!} {!! Form::label('active', 'Active:') !!}
<label class="checkbox-inline"> <label class="checkbox-inline">
{!! Form::hidden('active', 0, false) !!} {!! Form::hidden('active', 0, false) !!}
{!! Form::checkbox('active', 1, null) !!} {!! Form::checkbox('active', 1, null) !!}
</label> </label>
</div> </div>
<div class="col-6">&nbsp;</div>
</div>
<div class="row">
<!-- Submit Field --> <!-- Submit Field -->
<div class="form-group col-sm-12"> <div class="form-group col-sm-12">
<div class="pull-right"> <div class="pull-right">

View File

@@ -2,7 +2,8 @@
<thead> <thead>
<th>Subfleet</th> <th>Subfleet</th>
<th>Name</th> <th>Name</th>
<th>Registration</th> <th style="text-align: center;">ICAO</th>
<th style="text-align: center;">Registration</th>
<th style="text-align: center;">Active</th> <th style="text-align: center;">Active</th>
<th style="text-align: right;"></th> <th style="text-align: right;"></th>
</thead> </thead>
@@ -19,7 +20,8 @@
@endif @endif
</td> </td>
<td><a href="{!! route('admin.aircraft.edit', [$ac->id]) !!}">{!! $ac->name !!}</a></td> <td><a href="{!! route('admin.aircraft.edit', [$ac->id]) !!}">{!! $ac->name !!}</a></td>
<td>{!! $ac->registration !!}</td> <td style="text-align: center;">{!! $ac->icao !!}</td>
<td style="text-align: center;">{!! $ac->registration !!}</td>
<td style="text-align: center;"> <td style="text-align: center;">
@if($ac->active == 1) @if($ac->active == 1)
<span class="label label-success">Active</span> <span class="label label-success">Active</span>