51 lines
1.4 KiB
PHP
51 lines
1.4 KiB
PHP
@extends('admin.app')
|
|
|
|
@section('content')
|
|
<section class="content-header">
|
|
<h1>Edit "{!! $rank->name !!}"</h1>
|
|
</section>
|
|
<div class="content">
|
|
@include('adminlte-templates::common.errors')
|
|
<div class="box box-primary">
|
|
<div class="box-body">
|
|
<div class="row">
|
|
{!! Form::model($rank, ['route' => ['admin.ranks.update', $rank->id], 'method' => 'patch']) !!}
|
|
|
|
@include('admin.ranks.fields')
|
|
|
|
{!! Form::close() !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="box box-primary">
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<h3>subfleets</h3>
|
|
<div class="box-body">
|
|
@include('admin.ranks.subfleets')
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
@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
|