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);
|
||||
|
||||
$capaciteMax = '5';
|
||||
$productId = $request->getProductId();
|
||||
if ($productId === "16")
|
||||
$capaciteMax = 8;
|
||||
|
||||
|
||||
$formBuilder
|
||||
// -- Username and passwords -------------------------------------------------------------------------------
|
||||
->add(
|
||||
@@ -70,11 +64,6 @@ trait Beds24FormFieldsTrait
|
||||
]
|
||||
]
|
||||
)
|
||||
->add(
|
||||
'capacite_max',
|
||||
'text',
|
||||
['data' => $capaciteMax]
|
||||
)
|
||||
->add(
|
||||
'adults',
|
||||
'text',
|
||||
|
||||
@@ -30,9 +30,15 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field field="capacite_max"}
|
||||
{assign var="capacite_max" value={$data}}
|
||||
{/form_field}
|
||||
<!-- 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=5}
|
||||
{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"}
|
||||
<div class="form-group col-md-6{if $error} has-error{/if}">
|
||||
|
||||
Reference in New Issue
Block a user