phpvms/resources/views/admin/ranks/index.blade.php

52 lines
1.5 KiB
PHP
Raw Normal View History

2017-06-22 02:44:30 +08:00
@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>
2017-06-22 09:18:01 +08:00
@include('admin.ranks.create')
2017-06-22 02:44:30 +08:00
</div>
@endsection
2017-06-22 09:18:01 +08:00
@section('scripts')
2017-06-22 02:44:30 +08:00
<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();
2017-06-22 09:18:01 +08:00
$.pjax.submit(event, '#ranks_table_wrapper', {push: false});
2017-06-22 02:44:30 +08:00
});
});
</script>
@endsection