Add flight route map; algorithm for picking from multiple nav points; some tests
This commit is contained in:
@@ -1,23 +1,53 @@
|
||||
@extends('layouts.default.app')
|
||||
@section('title', 'Flight '.$flight->ident)
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
@include('layouts.default.flights.show_fields')
|
||||
<div class="col-md-12">
|
||||
<h3 class="description">{!! $flight->ident !!} - {!! $flight->dpt_airport->full_name !!} to {!! $flight->arr_airport->full_name !!}</h3>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('scripts')
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$(".select2_dropdown").select2();
|
||||
|
||||
$(document).on('submit', 'form.pjax_form', function (event) {
|
||||
event.preventDefault();
|
||||
$.pjax.submit(event, '#subfleet_flight_wrapper', {push: false});
|
||||
});
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td>Departure</td>
|
||||
<td>{!! $flight->dpt_airport->icao !!} @ {!! $flight->dpt_time !!}</td>
|
||||
</tr>
|
||||
|
||||
$(document).on('pjax:complete', function() {
|
||||
$(".select2_dropdown").select2();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<tr>
|
||||
<td>Arrival</td>
|
||||
<td>{!! $flight->arr_airport->icao !!} @ {!! $flight->arr_time !!}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Route Code/Leg:</td>
|
||||
<td>{!! $flight->route_code ?: '-' !!}/{!! $flight->route_leg ?: '-' !!}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Alternate Airport</td>
|
||||
<td>
|
||||
@if($flight->alt_airport_id)
|
||||
{!! $flight->alt_airport->full_name !!}
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Route</td>
|
||||
<td>{!! $flight->route !!}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Notes</td>
|
||||
<td>{!! $flight->notes !!}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@include('layouts.default.flights.map')
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user