[Bug] On relation in HTML Builder

This commit is contained in:
Ludovic CANDELLIER
2020-05-11 02:52:28 +02:00
parent b481b78ebb
commit 5841445e0d
23 changed files with 299 additions and 207 deletions

View File

@@ -17,7 +17,7 @@
{{$dataTable->table()}}
</div>
<div class="col-4">
<div id="tree1" data-url="{{ route('Shop.Categories.getTree') }}"></div>
@include('Shop.Admin.Categories.partials.tree')
</div>
</div>
@@ -25,15 +25,5 @@
@push('scripts')
@include('components.js.datatable', ['route' => '/Shop/Admin/Categories', 'model' => 'categories'])
<script>
$(function() {
$('#tree1').tree({
dragAndDrop: true,
autoOpen: 0
});
});
</script>
@endpush

View File

@@ -0,0 +1,24 @@
<div class="card">
<div class="card-header">
<h3 class="card-title">
<i class="fas fa-sort"></i>
Gestion du menu
</h3>
</div>
<div class="card-body">
<div id="tree1" data-url="{{ route('Shop.Categories.getTree') }}"></div>
</div>
</div>
@push('scripts')
<script>
$(function() {
$('#tree1').tree({
dragAndDrop: true,
autoOpen: 0
});
});
</script>
@endpush

View File

@@ -9,6 +9,7 @@
<title>{{ $title }} | {{ config('app.name') }}</title>
<link rel="stylesheet" href="{{ mix('/adminlte.min.css', '/assets/vendor/boilerplate') }}">
<link rel="stylesheet" href="{{ mix('/css/app.css') }}">
<link rel="stylesheet" href="/css/main.min.css">
@stack('css')
</head>
<body class="layout-fixed layout-navbar-fixed sidebar-mini">