Add load_factor and load_factor_variance to flights #352 (#620)

This commit is contained in:
Nabeel S
2020-03-05 20:19:12 -05:00
committed by GitHub
parent 9ed2e3f9f4
commit 16c977c769
25 changed files with 290 additions and 120 deletions

View File

@@ -6,7 +6,7 @@
<div class="alert alert-danger" role="alert">
There was a problem running the cron; make sure it's setup and check logs at
<span class="text-monospace bg-gradient-dark">storage/logs/cron.log</span>.
<a href="{{ config('phpvms.docs.cron') }}" target="_blank">See the docs</a>
<a href="{{ docs_link('cron') }}" target="_blank">See the docs</a>
</div>
@endif

View File

@@ -6,8 +6,7 @@
the values used come from the subfleet of the aircraft that the flight is
filed with. Only assign the fares you want to override. They can be set as
a monetary amount, or a percentage.
<a href="http://docs.phpvms.net/concepts/finances"
target="_blank">Read documentation about finances</a>.
<a href="{{ docs_link('finances') }}" target="_blank">Read documentation about finances</a>.
@endcomponent
<p class="text-danger">{{ $errors->first('value') }}</p>

View File

@@ -99,25 +99,28 @@
{{-- NEXT ROW --}}
<div class="row">
<div class="form-group col-sm-3">
{{ Form::label('dpt_time', 'Departure Time:') }}
{{ Form::text('dpt_time', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('dpt_time') }}</p>
<div class="form-group col-sm-4">
{{ Form::label('load_factor', 'Load Factor:') }}
{{ Form::text('load_factor', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('load_factor') }}</p>
@component('admin.components.info')
Value between 1 and 100. See
<a href="{{ docs_link('load_factor') }}" target="_blank">docs</a>.
Leave blank to use the default value.
@endcomponent
</div>
<div class="form-group col-sm-3">
{{ Form::label('arr_time', 'Arrival Time:') }}
{{ Form::text('arr_time', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('arr_time') }}</p>
<div class="form-group col-sm-4">
{{ Form::label('load_factor_variance', 'Load Factor Variance:') }}
{{ Form::text('load_factor_variance', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('load_factor_variance') }}</p>
@component('admin.components.info')
How much the load factor can vary per flight (+ or -). Leave blank to
use the default value.
@endcomponent
</div>
<div class="form-group col-sm-3">
{{ Form::label('level', 'Flight Level:') }}
{{ Form::text('level', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('level') }}</p>
</div>
<div class="form-group col-sm-3">
<div class="form-group col-sm-4">
{{ Form::label('distance', 'Distance:') }} <span class="description small">in nautical miles</span>
<a href="#" class="airport_distance_lookup">Calculate</a>
{{ Form::text('distance', null, ['id' => 'distance', 'class' => 'form-control']) }}
@@ -185,6 +188,20 @@
</select>
</div>
</div>
<div class="row">
<div class="form-group col-sm-4">
{{ Form::label('dpt_time', 'Departure Time:') }}
{{ Form::text('dpt_time', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('dpt_time') }}</p>
</div>
<div class="form-group col-sm-4">
{{ Form::label('arr_time', 'Arrival Time:') }}
{{ Form::text('arr_time', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('arr_time') }}</p>
</div>
</div>
</div>
</div>
</div>
@@ -206,6 +223,14 @@
<p class="text-danger">{{ $errors->first('route') }}</p>
</div>
</div>
<div class="form-container-body row">
<div class="form-group col-sm-4">
{{ Form::label('level', 'Flight Level:') }}
{{ Form::text('level', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('level') }}</p>
</div>
</div>
</div>
</div>
</div>

View File

@@ -15,7 +15,7 @@
<div class="alert alert-danger" role="alert">
There was a problem running the cron; make sure it's setup and check logs at
<span class="text-monospace bg-gradient-dark">storage/logs/cron.log</span>.
<a href="{{ config('phpvms.docs.cron') }}" target="_blank">See the docs</a>
<a href="{{ docs_link('cron') }}" target="_blank">See the docs</a>
</div>
@endif
</div>

View File

@@ -5,10 +5,7 @@
group aircraft together by feature, so 737s with winglets might have a type of
"B.738-WL". You can create as many as you want, you need at least one, though.
Read more about subfleets <a
href="http://docs.phpvms.net/concepts/basics#subfleets-and-aircraft"
target="_new">here</a>.
Read more about subfleets <a href="{{ docs_link('finances') }}" target="_new">here</a>.
@endcomponent
</div>