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:
Ludovic CANDELLIER
2023-02-10 23:11:48 +01:00
parent 405effe43e
commit cafd0a49e7
14 changed files with 74 additions and 24 deletions

View File

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