Add edit for flight type; block_on_time and block_off_time for PIREP API

This commit is contained in:
Nabeel Shahzad
2018-03-29 14:10:49 -05:00
parent be6fead812
commit 2ab4db3a2e
11 changed files with 65 additions and 27 deletions

View File

@@ -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>