Modif de la liste déroulante du nombre d'adultes
This commit is contained in:
@@ -36,12 +36,6 @@ trait Beds24FormFieldsTrait
|
|||||||
{
|
{
|
||||||
$searchParameters = new Beds24\SearchParameters($request);
|
$searchParameters = new Beds24\SearchParameters($request);
|
||||||
|
|
||||||
$capaciteMax = '5';
|
|
||||||
$productId = $request->getProductId();
|
|
||||||
if ($productId === "16")
|
|
||||||
$capaciteMax = 8;
|
|
||||||
|
|
||||||
|
|
||||||
$formBuilder
|
$formBuilder
|
||||||
// -- Username and passwords -------------------------------------------------------------------------------
|
// -- Username and passwords -------------------------------------------------------------------------------
|
||||||
->add(
|
->add(
|
||||||
@@ -70,11 +64,6 @@ trait Beds24FormFieldsTrait
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
->add(
|
|
||||||
'capacite_max',
|
|
||||||
'text',
|
|
||||||
['data' => $capaciteMax]
|
|
||||||
)
|
|
||||||
->add(
|
->add(
|
||||||
'adults',
|
'adults',
|
||||||
'text',
|
'text',
|
||||||
|
|||||||
@@ -30,9 +30,15 @@
|
|||||||
</div>
|
</div>
|
||||||
{/form_field}
|
{/form_field}
|
||||||
|
|
||||||
{form_field field="capacite_max"}
|
<!-- TheCoreDev le 23/03/2021 : la capacité "Nombre d'adultes" dépend directement d'un attribut "Nre max. de personnes" (ATTENTION à ne pas changer le nom de cet attribut) //-->
|
||||||
{assign var="capacite_max" value={$data}}
|
{assign var="capacite_max" value=5}
|
||||||
{/form_field}
|
{loop type="feature" name="feature-loop" title="Nre max. de personnes"}
|
||||||
|
{loop type="feature_value" name="feature-value-loop" feature={$ID} product={$product}}
|
||||||
|
{loop type="feature-availability" name="feature-av-loop" id={$FEATURE_AV_ID}}
|
||||||
|
{assign var="capacite_max" value={$TITLE}}
|
||||||
|
{/loop}
|
||||||
|
{/loop}
|
||||||
|
{/loop}
|
||||||
|
|
||||||
{form_field field="adults"}
|
{form_field field="adults"}
|
||||||
<div class="form-group col-md-6{if $error} has-error{/if}">
|
<div class="form-group col-md-6{if $error} has-error{/if}">
|
||||||
|
|||||||
Reference in New Issue
Block a user