#11 assign/remove fares from aircraft
This commit is contained in:
@@ -56,5 +56,25 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<hr />
|
||||
{!! $avail_fares !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-12" style="text-align: right;">
|
||||
<div class="input-group input-group-lg">
|
||||
{!! Form::open(['url' => '/admin/aircraft/'.$aircraft->id.'/fares',
|
||||
'method' => 'post',
|
||||
'class' => 'rm_fare form-inline'
|
||||
])
|
||||
!!}
|
||||
{!! Form::select('fare_id', $avail_fares, null, [
|
||||
'placeholder' => 'Select Fare',
|
||||
'class' => 'ac-fare-dropdown form-control input-lg',
|
||||
|
||||
])
|
||||
!!}
|
||||
{!! Form::button('<i class="glyphicon glyphicon-plus"></i> add',
|
||||
['type' => 'submit',
|
||||
'class' => 'btn btn-success btn-s']) !!}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
@section('scripts')
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".ac-fare-dropdown").select2();
|
||||
$(document).on('submit', 'form.rm_fare', function(event) {
|
||||
console.log('saving!');
|
||||
event.preventDefault();
|
||||
$.pjax.submit(event, '#aircraft_fares_wrapper', {push: false});
|
||||
});
|
||||
|
||||
@@ -3,9 +3,11 @@
|
||||
<div class="box box-solid">
|
||||
<div class="box-header with-border">
|
||||
{{--<i class="fa fa-text-width"></i>--}}
|
||||
<h3 class="box-title">{!! Form::label('icao', 'ICAO:') !!}</h3>
|
||||
<h3 class="box-title">{!! Form::label('icao', 'ICAO') !!}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<p class="lead">{!! $aircraft->icao !!}/<strong>{!! $aircraft->class->code !!}</strong> ({!! $aircraft->class->name !!})</p>
|
||||
</div>
|
||||
<div class="box-body"><p class="lead">{!! $aircraft->icao !!}</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -14,7 +16,7 @@
|
||||
<div class="box box-solid">
|
||||
<div class="box-header with-border">
|
||||
{{--<i class="fa fa-text-width"></i>--}}
|
||||
<h3 class="box-title">{!! Form::label('name', 'Name:') !!}</h3>
|
||||
<h3 class="box-title">{!! Form::label('name', 'Name') !!}</h3>
|
||||
</div>
|
||||
<div class="box-body"><p class="lead">{!! $aircraft->name !!}</p></div>
|
||||
</div>
|
||||
@@ -25,9 +27,10 @@
|
||||
<div class="box box-solid">
|
||||
<div class="box-header with-border">
|
||||
{{--<i class="fa fa-text-width"></i>--}}
|
||||
<h3 class="box-title">{!! Form::label('registration', 'Registration:') !!}</h3>
|
||||
<h3 class="box-title">{!! Form::label('registration', 'Registration') !!}/
|
||||
{!! Form::label('tail_number', 'Tail Number') !!}</h3>
|
||||
</div>
|
||||
<div class="box-body"><p class="lead">{!! $aircraft->registration !!}</p></div>
|
||||
<div class="box-body"><p class="lead">{!! $aircraft->registration !!}/{!! $aircraft->tail_number !!}</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user