Mise à jour
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
<div class="row row-attribute">
|
||||
|
||||
<input type="hidden" name="prices[{{ $key }}][article_attribute][quantity]" value="1">
|
||||
<input type="hidden" name="prices[{{ $key }}][article_attribute][id]" value="{{ (isset($attribute['id'])) ? $attribute['id'] : null }}">
|
||||
|
||||
<div class="col-12 col-lg-7">
|
||||
{{ Form::label('attribute_family_id', 'Attributs') }}<br/>
|
||||
{{ Form::label('attribute_family_id', 'Type') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[$key][attribute][attribute_family_id]",
|
||||
'value' => $attribute['attribute_value']['article_attribute_family_id'] ?? null,
|
||||
'name' => "prices[$key][price_family_id]",
|
||||
'value' => $price['price_family_id'] ?? null,
|
||||
'list' => $attribute_families_options,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm attributes-family'
|
||||
@@ -15,14 +12,13 @@
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-lg-5">
|
||||
{{ Form::label('attribute_value_id', 'Valeur') }}<br/>
|
||||
{{ Form::label('attribute_value_id', 'Unité') }}<br/>
|
||||
@include('components.select', [
|
||||
'name' => "prices[$key][attribute][attribute_value_id]",
|
||||
'value' => $attribute['article_attribute_value_id'] ?? null,
|
||||
'list' => $attribute_values ?? null,
|
||||
'name' => "prices[$key][unity_id]",
|
||||
'value' => $price['unity_id'] ?? null,
|
||||
'list' => $unities ?? null,
|
||||
'required' => true,
|
||||
'class' => 'select2 form-control-sm attributes-value',
|
||||
'meta' => (isset($attribute['article_attribute_value_id'])) ? 'data-id="' . $attribute['article_attribute_value_id'] . '"' : ''
|
||||
'class' => 'select2 form-control-sm attributes-value w-100',
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,12 +7,7 @@
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-3">
|
||||
{{ Form::label('price_generic_id', 'Générique') }}<br/>
|
||||
@include('components.select-tree', ['name' => "prices[$key][article_price_generic_id]", 'value' => $price['article_price_generic_id'] ?? null, 'list' => $price_generics ?? null, 'required' => false, 'class' => 'form-control-sm'])
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8">
|
||||
<div class="col-lg-11">
|
||||
<div class="row">
|
||||
<div class="col-lg-1">
|
||||
{{ Form::label('quantity', 'Qté.') }}<br/>
|
||||
@@ -20,7 +15,7 @@
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
@include('Shop.Admin.Articles.partials.prices.block_attribute', ['attribute' => $price['article_attribute'] ?? null])
|
||||
@include('Shop.Admin.Articles.partials.prices.block_attribute')
|
||||
</div>
|
||||
|
||||
<div class="col-lg-5">
|
||||
|
||||
Reference in New Issue
Block a user