Add edit for flight type; block_on_time and block_off_time for PIREP API
This commit is contained in:
@@ -39,7 +39,7 @@ h3, .h3{
|
||||
h4, .h4{
|
||||
font-size: $font-size-h4;
|
||||
line-height: 1.45em;
|
||||
margin-top: $margin-base-vertical * 2;
|
||||
//margin-top: $margin-base-vertical * 2;
|
||||
margin-bottom: $margin-base-vertical;
|
||||
|
||||
& + .category,
|
||||
|
||||
@@ -39,7 +39,18 @@
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group col-sm-6">
|
||||
<div class="form-group col-sm-3">
|
||||
{{ Form::label('flight_type', 'Flight Type') }}
|
||||
{{ Form::select('flight_type',
|
||||
\App\Models\Enums\FlightType::select(),
|
||||
null, [
|
||||
'class' => 'form-control select2',
|
||||
'readonly' => $read_only
|
||||
])
|
||||
}}
|
||||
<p class="text-danger">{{ $errors->first('flight_type') }}</p>
|
||||
</div>
|
||||
<div class="form-group col-sm-3">
|
||||
<p class="description">Filed Via:</p>
|
||||
{{ PirepSource::label($pirep->source) }}
|
||||
@if(filled($pirep->source_name))
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
{{-- End the required lines block --}}
|
||||
|
||||
<link rel="shortcut icon" type="image/png" href="{{ public_asset('/assets/img/favicon.png') }}"/>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet"/>
|
||||
<link href="{{ public_asset('/assets/frontend/css/bootstrap.min.css') }}" rel="stylesheet"/>
|
||||
<link href="{{ public_asset('/assets/frontend/css/now-ui-kit.css') }}" rel="stylesheet"/>
|
||||
|
||||
@@ -94,6 +94,27 @@ flight reports that have been filed. You've been warned!
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Flight Type</td>
|
||||
<td>
|
||||
@if($read_only)
|
||||
<p>{{ \App\Models\Enums\FlightType::label($pirep->flight_type) }}</p>
|
||||
{{ Form::hidden('flight_type') }}
|
||||
@else
|
||||
<div class="input-group form-group">
|
||||
{{ Form::select('flight_type',
|
||||
\App\Models\Enums\FlightType::select(),
|
||||
null, [
|
||||
'class' => 'custom-select select2',
|
||||
'readonly' => $read_only
|
||||
])
|
||||
}}
|
||||
</div>
|
||||
<p class="text-danger">{{ $errors->first('flight_type') }}</p>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Origin Airport</td>
|
||||
<td>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h3 class="description">flight map</h3>
|
||||
<h4 class="description">flight map</h4>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="box-body">
|
||||
|
||||
@@ -3,13 +3,14 @@
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-12">
|
||||
<h2 class="description">{{ $pirep->ident }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-8">
|
||||
<h4 class="description">flight info</h4>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<td>Status</td>
|
||||
@@ -40,6 +41,11 @@
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Flight Type</td>
|
||||
<td>{{ \App\Models\Enums\FlightType::label($pirep->flight_type) }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Flight Time</td>
|
||||
<td>
|
||||
@@ -70,20 +76,18 @@
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{--
|
||||
Show the fields that have been entered
|
||||
--}}
|
||||
<div class="col-4">
|
||||
{{--
|
||||
Show the fields that have been entered
|
||||
--}}
|
||||
|
||||
@if(count($pirep->fields) > 0)
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h3 class="description">fields</h3>
|
||||
@if(count($pirep->fields) > 0)
|
||||
<h4 class="description">fields</h4>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<th>Name</th>
|
||||
<th>Value</th>
|
||||
<th>Name</th>
|
||||
<th>Value</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($pirep->fields as $field)
|
||||
@@ -94,9 +98,9 @@
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{{--
|
||||
Show the fares that have been entered
|
||||
@@ -104,8 +108,8 @@
|
||||
|
||||
@if(count($pirep->fares) > 0)
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h3 class="description">fares</h3>
|
||||
<div class="col-12">
|
||||
<h4 class="description">fares</h4>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<th>Class</th>
|
||||
@@ -124,7 +128,7 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include("pireps.map")
|
||||
@include('pireps.map')
|
||||
|
||||
@if(count($pirep->acars_logs) > 0)
|
||||
<br /><br />
|
||||
|
||||
Reference in New Issue
Block a user