Fixes on widget uploder
This commit is contained in:
@@ -78,6 +78,7 @@
|
||||
@include('boilerplate::load.tinymce')
|
||||
@include('load.appender')
|
||||
@include('load.toggle')
|
||||
@include('load.form.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
@@ -92,6 +93,8 @@
|
||||
// handleAdmin.toggle(id, $(this).prop('checked'));
|
||||
});
|
||||
|
||||
initSaveForm('.save', '#article-form');
|
||||
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -37,6 +37,7 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tags', 'Tags') }}<br>
|
||||
@include('Shop.Admin.Articles.partials.product.tags')
|
||||
@include('components.select-tree', ['name' => 'tags[]', 'list' => $tags_list, 'values' => $article['tags'] ?? null, 'class' => 'select2 form-control', 'multiple' => true])
|
||||
</div>
|
||||
</div>
|
||||
@@ -44,18 +45,15 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@if (!empty($article['product']['description']))
|
||||
@component('components.layout.box-collapse', ['id' => 'product_description', 'title' => 'Description produit'])
|
||||
{{ $article['product']['description'] }}
|
||||
@endcomponent
|
||||
@endif
|
||||
@include('Shop.Admin.Articles.partials.product.description')
|
||||
@include('components.textarea', ['name' => 'description', 'value' => $article['description'] ?? null, 'class' => 'editor', 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
@include('components.uploader.widget', ['load_url' => route('Shop.Admin.Articles.getImages', ['id' => $article['id'] ?? false]), 'delete_url' => route('Shop.Admin.Articles.deleteImage'), 'title' => 'Photos' ])
|
||||
@include('Shop.Admin.Articles.partials.product.images', ['name' => 'product_images'])
|
||||
@include('components.uploader.widget', ['load_url' => route('Shop.Admin.Articles.getImages', ['id' => $article['id'] ?? false]), 'delete_url' => route('Shop.Admin.Articles.deleteImage'), 'title' => 'Photos', 'name' => 'images' ])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
@if (!empty($article['product']['description']))
|
||||
@component('components.layout.box-collapse', ['id' => 'product_description', 'title' => 'Description produit'])
|
||||
{{ $article['product']['description'] }}
|
||||
@endcomponent
|
||||
@endif
|
||||
@@ -0,0 +1 @@
|
||||
@include('components.uploader.widget', ['load_url' => route('Botanic.Admin.Varieties.getImages', ['id' => $article['product_id'] ?? false]), 'title' => 'Photos produits', 'prefix' => 'product_', 'can_edit' => false ])
|
||||
@@ -0,0 +1,7 @@
|
||||
@if (!empty($article['product']['tags']))
|
||||
@component('components.layout.box-collapse', ['id' => 'product_tags', 'title' => 'Tags produit'])
|
||||
@foreach ($article['product']['tags'] as $tag)
|
||||
{{ $tag->name }}
|
||||
@endforeach
|
||||
@endcomponent
|
||||
@endif
|
||||
Reference in New Issue
Block a user