#41 inline editing of fuel prices

This commit is contained in:
Nabeel Shahzad
2017-07-05 18:48:32 -05:00
parent d44d374218
commit 10baaab646
10 changed files with 156 additions and 58 deletions

View File

@@ -0,0 +1,21 @@
@section('scripts')
<script>
$(document).ready(function() {
$('#airports-table a.inline').editable({
type: 'text',
mode: 'inline',
emptytext: '0',
url: '/admin/airports/fuel',
title: 'Enter price per unit of fuel',
ajaxOptions: {'type': 'put'},
params: function(params) {
return {
id: params.pk,
name: params.name,
value: params.value
}
}
});
});
</script>
@endsection