2017-06-22 02:44:30 +08:00
|
|
|
@extends('admin.app')
|
2017-11-23 10:03:49 +08:00
|
|
|
@section('title', "Edit \"$rank->name\"")
|
2017-06-22 01:10:25 +08:00
|
|
|
@section('content')
|
2017-11-23 10:03:49 +08:00
|
|
|
<div class="card border-blue-bottom">
|
2017-06-22 01:10:25 +08:00
|
|
|
<div class="content">
|
|
|
|
@include('adminlte-templates::common.errors')
|
2017-11-23 10:03:49 +08:00
|
|
|
{!! Form::model($rank, ['route' => ['admin.ranks.update', $rank->id], 'method' => 'patch']) !!}
|
|
|
|
@include('admin.ranks.fields')
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-07-02 10:06:55 +08:00
|
|
|
|
2017-11-23 10:03:49 +08:00
|
|
|
<div class="card border-blue-bottom">
|
|
|
|
<div class="header">
|
|
|
|
<h3>subfleets</h3>
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<div class="row">
|
|
|
|
@include('admin.ranks.subfleets')
|
2017-07-02 10:06:55 +08:00
|
|
|
</div>
|
2017-11-23 10:03:49 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-06-22 02:44:30 +08:00
|
|
|
@endsection
|
2017-07-02 10:06:55 +08:00
|
|
|
@section('scripts')
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(".select2_dropdown").select2();
|
|
|
|
|
|
|
|
$(document).on('submit', 'form.pjax_form', function(event) {
|
|
|
|
event.preventDefault();
|
|
|
|
$.pjax.submit(event, '#rank_subfleet_wrapper', {push: false});
|
|
|
|
});
|
|
|
|
|
|
|
|
$(document).on('pjax:complete', function() {
|
|
|
|
$(".select2_dropdown").select2();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endsection
|