Fix tree
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
<div class="row mb-3">
|
||||
<div class="col-3">
|
||||
{{ Form::label('model', 'Familles de produit') }}<br>
|
||||
@include('components.select', ['name' => 'product_type', 'id_name' => 'product_type', 'list' => $models_options, 'value' => $article['product_type'] ?? null, 'class' => 'select2'])
|
||||
@include('components.select', ['name' => 'product_type', 'id_name' => 'product_type', 'list' => $models_options, 'value' => $article['product_type'] ?? null, 'class' => 'select2', 'with_empty' => ''])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('model_id', 'Produit') }}<br>
|
||||
@include('components.select', ['name' => 'product_id', 'id_name' => 'product_id', 'list' => $products ?? [], 'value' => $article['product_id'] ?? null, 'class' => 'select2'])
|
||||
@include('components.select', ['name' => 'product_id', 'id_name' => 'product_id', 'list' => $products ?? [], 'value' => $article['product_id'] ?? null, 'class' => 'select2', 'with_empty' => ''])
|
||||
</div>
|
||||
<div class="col-3">
|
||||
{{ Form::label('ref', 'Référence') }}<br>
|
||||
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
<div class="col-4">
|
||||
{{ Form::label('article_nature_id', __('Shop.article_natures.name')) }}<br>
|
||||
@include('components.select', ['name' => 'article_nature_id', 'list' => $natures_options, 'value' => $article['article_nature_id'] ?? null, 'class' => 'select2'])
|
||||
@include('components.select', ['name' => 'article_nature_id', 'list' => $natures_options, 'value' => $article['article_nature_id'] ?? null, 'class' => 'select2', 'with_empty' => ''])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
@include('boilerplate::load.fileinput')
|
||||
@include('boilerplate::load.select2')
|
||||
@include('boilerplate::load.tinymce')
|
||||
|
||||
<input type="hidden" name="category_id" value="{{ $category_id }}">
|
||||
|
||||
<div class="row">
|
||||
@@ -37,11 +33,12 @@
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('boilerplate::load.select2')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$(".select2").select2();
|
||||
$('.editor').tinymce({});
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -10,8 +10,9 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('load.form.tree')
|
||||
|
||||
@push('scripts')
|
||||
@push('js')
|
||||
<script>
|
||||
var position = '';
|
||||
var target_node = '';
|
||||
@@ -45,7 +46,6 @@
|
||||
console.log("Parent node", parent_node);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
function handleMove(node, e) {
|
||||
|
||||
Reference in New Issue
Block a user