Use lowercase for input field names
This commit is contained in:
@@ -203,9 +203,9 @@ class AdminAddHotelController extends ModuleAdminController
|
||||
$address = Tools::getValue('address');
|
||||
$active = Tools::getValue('ENABLE_HOTEL');
|
||||
$activeRefund = Tools::getValue('active_refund');
|
||||
$enableUseGlobalMaxOrderDate = Tools::getValue('ENABLE_USE_GLOBAL_MAX_ORDER_DATE');
|
||||
$enableUseGlobalMaxOrderDate = Tools::getValue('enable_use_global_max_order_date');
|
||||
$maximumBookingDate = Tools::getValue('maximum_booking_date');
|
||||
$enableUseGlobalPreparationTime = Tools::getValue('ENABLE_USE_GLOBAL_PREPARATION_TIME');
|
||||
$enableUseGlobalPreparationTime = Tools::getValue('enable_use_global_preparation_time');
|
||||
$preparationTime = Tools::getValue('preparation_time');
|
||||
$latitude = Tools::getValue('loclatitude');
|
||||
$longitude = Tools::getValue('loclongitude');
|
||||
|
||||
@@ -1166,7 +1166,7 @@ $(document).ready(function() {
|
||||
minDate: 0,
|
||||
});
|
||||
|
||||
$('input[name="ENABLE_USE_GLOBAL_MAX_ORDER_DATE"]').on('change', function () {
|
||||
$('input[name="enable_use_global_max_order_date"]').on('change', function () {
|
||||
if (parseInt($(this).val())) {
|
||||
$('input[name="maximum_booking_date"]').closest('.form-group').hide(200);
|
||||
} else {
|
||||
@@ -1174,7 +1174,7 @@ $(document).ready(function() {
|
||||
}
|
||||
});
|
||||
|
||||
$('input[name="ENABLE_USE_GLOBAL_PREPARATION_TIME"]').on('change', function () {
|
||||
$('input[name="enable_use_global_preparation_time"]').on('change', function () {
|
||||
if (parseInt($(this).val())) {
|
||||
$('input[name="preparation_time"]').closest('.form-group').hide(200);
|
||||
} else {
|
||||
|
||||
@@ -275,15 +275,15 @@
|
||||
</label>
|
||||
<div class="col-lg-6">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" {if isset($edit)}{if isset($order_restrict_date_info.use_global_max_order_date) && $order_restrict_date_info.use_global_max_order_date} checked="checked" {/if}{else} checked="checked" {/if} value="1" id="ENABLE_USE_GLOBAL_MAX_ORDER_DATE_on" name="ENABLE_USE_GLOBAL_MAX_ORDER_DATE">
|
||||
<label for="ENABLE_USE_GLOBAL_MAX_ORDER_DATE_on">{l s='Yes'}</label>
|
||||
<input {if isset($edit) && isset($order_restrict_date_info.use_global_max_order_date) && !$order_restrict_date_info.use_global_max_order_date} checked="checked" {/if} type="radio" value="0" id="ENABLE_USE_GLOBAL_MAX_ORDER_DATE_off" name="ENABLE_USE_GLOBAL_MAX_ORDER_DATE">
|
||||
<label for="ENABLE_USE_GLOBAL_MAX_ORDER_DATE_off">{l s='No'}</label>
|
||||
<input type="radio" {if isset($edit)}{if isset($order_restrict_date_info.use_global_max_order_date) && $order_restrict_date_info.use_global_max_order_date} checked="checked" {/if}{else} checked="checked" {/if} value="1" id="enable_use_global_max_order_date_on" name="enable_use_global_max_order_date">
|
||||
<label for="enable_use_global_max_order_date_on">{l s='Yes'}</label>
|
||||
<input {if isset($edit) && isset($order_restrict_date_info.use_global_max_order_date) && !$order_restrict_date_info.use_global_max_order_date} checked="checked" {/if} type="radio" value="0" id="enable_use_global_max_order_date_off" name="enable_use_global_max_order_date">
|
||||
<label for="enable_use_global_max_order_date_off">{l s='No'}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" {if isset($smarty.post.ENABLE_USE_GLOBAL_MAX_ORDER_DATE)}{if !$smarty.post.ENABLE_USE_GLOBAL_MAX_ORDER_DATE}style="display:block;"{else}style="display:none;"{/if}{elseif isset($order_restrict_date_info.use_global_max_order_date) && !$order_restrict_date_info.use_global_max_order_date}style="display:block;" {else} style="display:none;" {/if}>
|
||||
<div class="form-group" {if isset($smarty.post.enable_use_global_max_order_date)}{if !$smarty.post.enable_use_global_max_order_date}style="display:block;"{else}style="display:none;"{/if}{elseif isset($order_restrict_date_info.use_global_max_order_date) && !$order_restrict_date_info.use_global_max_order_date}style="display:block;" {else} style="display:none;" {/if}>
|
||||
<label class="control-label col-sm-3 required" for="maximum_booking_date">{l s='Maximum Date to book a room :' mod='hotelreservationsystem'}</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" class="form-control" id="maximum_booking_date" name="maximum_booking_date" value="{if isset($smarty.post.maximum_booking_date)}{$smarty.post.maximum_booking_date|escape:'html':'UTF-8'}{elseif isset($edit) && isset($order_restrict_date_info.max_order_date)}{$order_restrict_date_info.max_order_date|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
@@ -295,15 +295,15 @@
|
||||
</label>
|
||||
<div class="col-lg-6">
|
||||
<span class="switch prestashop-switch fixed-width-lg">
|
||||
<input type="radio" {if isset($edit) && isset($order_restrict_date_info.use_global_preparation_time) && $order_restrict_date_info.use_global_preparation_time} checked="checked" {else} checked="checked" {/if} value="1" id="ENABLE_USE_GLOBAL_PREPARATION_TIME_on" name="ENABLE_USE_GLOBAL_PREPARATION_TIME">
|
||||
<label for="ENABLE_USE_GLOBAL_PREPARATION_TIME_on">{l s='Yes'}</label>
|
||||
<input {if isset($edit) && isset($order_restrict_date_info.use_global_preparation_time) && !$order_restrict_date_info.use_global_preparation_time} checked="checked" {/if} type="radio" value="0" id="ENABLE_USE_GLOBAL_PREPARATION_TIME_off" name="ENABLE_USE_GLOBAL_PREPARATION_TIME">
|
||||
<label for="ENABLE_USE_GLOBAL_PREPARATION_TIME_off">{l s='No'}</label>
|
||||
<input type="radio" {if isset($edit) && isset($order_restrict_date_info.use_global_preparation_time) && $order_restrict_date_info.use_global_preparation_time} checked="checked" {else} checked="checked" {/if} value="1" id="enable_use_global_preparation_time_on" name="enable_use_global_preparation_time">
|
||||
<label for="enable_use_global_preparation_time_on">{l s='Yes'}</label>
|
||||
<input {if isset($edit) && isset($order_restrict_date_info.use_global_preparation_time) && !$order_restrict_date_info.use_global_preparation_time} checked="checked" {/if} type="radio" value="0" id="enable_use_global_preparation_time_off" name="enable_use_global_preparation_time">
|
||||
<label for="enable_use_global_preparation_time_off">{l s='No'}</label>
|
||||
<a class="slide-button btn"></a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" {if isset($smarty.post.ENABLE_USE_GLOBAL_PREPARATION_TIME)}{if !$smarty.post.ENABLE_USE_GLOBAL_PREPARATION_TIME}style="display:block;"{else}style="display:none;"{/if}{elseif isset($order_restrict_date_info.use_global_preparation_time) && !$order_restrict_date_info.use_global_preparation_time}style="display:block;" {else} style="display:none;" {/if}>
|
||||
<div class="form-group" {if isset($smarty.post.enable_use_global_preparation_time)}{if !$smarty.post.enable_use_global_preparation_time}style="display:block;"{else}style="display:none;"{/if}{elseif isset($order_restrict_date_info.use_global_preparation_time) && !$order_restrict_date_info.use_global_preparation_time}style="display:block;" {else} style="display:none;" {/if}>
|
||||
<label class="control-label col-sm-3 required" for="preparation_time">{l s='Preparation time :' mod='hotelreservationsystem'}</label>
|
||||
<div class="col-sm-2">
|
||||
<input type="text" class="form-control" id="preparation_time" name="preparation_time" value="{if isset($smarty.post.preparation_time)}{$smarty.post.preparation_time|escape:'html':'UTF-8'}{elseif isset($edit) && isset($order_restrict_date_info.preparation_time)}{$order_restrict_date_info.preparation_time|escape:'htmlall':'UTF-8'}{/if}" />
|
||||
|
||||
Reference in New Issue
Block a user