change registration or connection in order page, change filter on shelve page, add new api to get article_nature by product_type, css fixes
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
{{ Form::label('article_nature_id', __('shop.article_natures.name')) }}<br>
|
||||
@include('components.form.select', [
|
||||
'name' => 'article_nature_id',
|
||||
'id_name' => 'article_nature_id',
|
||||
'list' => $natures_options,
|
||||
'value' => $article['article_nature_id'] ?? null,
|
||||
'class' => 'select2',
|
||||
@@ -155,12 +156,15 @@
|
||||
switch (product_type) {
|
||||
case 'App\\Models\\Botanic\\Specie':
|
||||
var url = '{{ route('Admin.Botanic.Species.getSelect') }}';
|
||||
var product_type = 1;
|
||||
break;
|
||||
case 'App\\Models\\Botanic\\Variety':
|
||||
var url = '{{ route('Admin.Botanic.Varieties.getSelect') }}';
|
||||
var product_type = 1;
|
||||
break;
|
||||
case 'App\\Models\\Shop\\Merchandise':
|
||||
var url = '{{ route('Admin.Shop.Merchandises.getSelect') }}';
|
||||
var product_type = 2;
|
||||
break;
|
||||
}
|
||||
loadProducts(url);
|
||||
|
||||
Reference in New Issue
Block a user