53 lines
1.5 KiB
PHP
53 lines
1.5 KiB
PHP
|
@extends('admin.app')
|
||
|
|
||
|
@section('content')
|
||
|
<section class="content-header">
|
||
|
<h1 class="pull-left">Pilot Ranks</h1>
|
||
|
<h1 class="pull-right">
|
||
|
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{!! route('admin.ranks.create') !!}">Add New</a>
|
||
|
</h1>
|
||
|
</section>
|
||
|
<div class="content">
|
||
|
<div class="clearfix"></div>
|
||
|
|
||
|
@include('flash::message')
|
||
|
|
||
|
<div class="clearfix"></div>
|
||
|
<div class="box box-primary">
|
||
|
<div class="box-body">
|
||
|
@include('admin.ranks.table')
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div id="create_rank_wrapper">
|
||
|
@include('admin.ranks.create')
|
||
|
</div>
|
||
|
</div>
|
||
|
@endsection
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function () {
|
||
|
/*$(".ac-fare-dropdown").select2();
|
||
|
$('#aircraft_fares a').editable({
|
||
|
type: 'text',
|
||
|
mode: 'inline',
|
||
|
emptytext: 'default',
|
||
|
title: 'Enter override value',
|
||
|
ajaxOptions: {'type': 'put'},
|
||
|
params: function (params) {
|
||
|
return {
|
||
|
rank_id: params.pk,
|
||
|
name: params.name,
|
||
|
value: params.value
|
||
|
}
|
||
|
}
|
||
|
});*/
|
||
|
|
||
|
$(document).on('submit', 'form.add_rank', function (event) {
|
||
|
event.preventDefault();
|
||
|
$.pjax.submit(event, '#create_rank_wrapper', {push: false});
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
@endsection
|