This commit is contained in:
Ludovic CANDELLIER
2021-08-24 22:26:37 +02:00
parent 8d51ced269
commit f32ac13f1e
7 changed files with 65 additions and 79 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -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) {

View File

@@ -0,0 +1,12 @@
@if(!defined('LOAD_TREE'))
@push('scripts')
<script src="{{ asset('/assets/plugins/jqtree/tree.jquery.js') }}"></script>
@endpush
@push('css')
<link rel="stylesheet" href="{{ asset('/assets/plugins/jqtree/jqtree.css') }}">
@endpush
@php(define('LOAD_TREE', true))
@endif