Add the acars and manual payrates in the rank/subfleet forms
This commit is contained in:
@@ -4,7 +4,7 @@ function setEditable() {
|
||||
$('#aircraft_fares a').editable({
|
||||
type: 'text',
|
||||
mode: 'inline',
|
||||
emptytext: 'default',
|
||||
emptytext: 'inherited',
|
||||
url: '{!! url('/admin/subfleets/'.$subfleet->id.'/fares') !!}',
|
||||
title: 'Enter override value',
|
||||
ajaxOptions: {'type': 'put'},
|
||||
@@ -16,6 +16,22 @@ function setEditable() {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('#subfleet_ranks a').editable({
|
||||
type: 'text',
|
||||
mode: 'inline',
|
||||
emptytext: 'inherited',
|
||||
url: '{!! url('/admin/subfleets/'.$subfleet->id.'/ranks') !!}',
|
||||
title: 'Enter override value',
|
||||
ajaxOptions: {'type': 'put'},
|
||||
params: function (params) {
|
||||
return {
|
||||
rank_id: params.pk,
|
||||
name: params.name,
|
||||
value: params.value
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
Reference in New Issue
Block a user