-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#32 Cleanup of subfleet edit and linked from the aircraft screen
- Loading branch information
Showing
7 changed files
with
55 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<!-- Airline Id Field --> | ||
<div class="form-group col-sm-6"> | ||
<div class="form-group col-sm-4"> | ||
{!! Form::label('airline_id', 'Airline Id:') !!} | ||
{!! Form::select('airline_id', $airlines, null , ['class' => 'form-control']) !!} | ||
</div> | ||
|
||
<!-- Name Field --> | ||
<div class="form-group col-sm-6"> | ||
<div class="form-group col-sm-4"> | ||
{!! Form::label('name', 'Name:') !!} | ||
{!! Form::text('name', null, ['class' => 'form-control']) !!} | ||
</div> | ||
|
||
<!-- Type Field --> | ||
<div class="form-group col-sm-6"> | ||
<div class="form-group col-sm-4"> | ||
{!! Form::label('type', 'Type:') !!} | ||
{!! Form::text('type', null, ['class' => 'form-control']) !!} | ||
</div> | ||
|
||
<!-- Submit Field --> | ||
<div class="form-group col-sm-12"> | ||
<div class="pull-right"> | ||
{!! Form::submit('Save', ['class' => 'btn btn-primary']) !!} | ||
<a href="{!! route('admin.subfleets.index') !!}" class="btn btn-default">Cancel</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@section('scripts') | ||
<script> | ||
$(document).ready(function() { | ||
$(".ac-fare-dropdown").select2(); | ||
$('#aircraft_fares a').editable({ | ||
type: 'text', | ||
mode: 'inline', | ||
emptytext: 'default', | ||
url: '/admin/subfleets/{!! $subfleet->id !!}/fares', | ||
title: 'Enter override value', | ||
ajaxOptions: { 'type': 'put'}, | ||
params: function(params) { | ||
return { | ||
fare_id: params.pk, | ||
name: params.name, | ||
value: params.value | ||
} | ||
} | ||
}); | ||
$(document).on('submit', 'form.rm_fare', function(event) { | ||
event.preventDefault(); | ||
$.pjax.submit(event, '#aircraft_fares_wrapper', {push: false}); | ||
}); | ||
}); | ||
</script> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters