<input type="{@$inputType}" id="{$option->optionName}" name="values[{$option->optionName}]" value="{$value}"{if $inputClass} class="{@$inputClass}"{/if}{if !$searchOption} disabled="disabled"{/if} />
<script data-relocate="true">
-//<![CDATA[
-$(function() {
- $('#search_{$option->optionName}').change(function(event) {
- if ($(event.currentTarget).prop('checked')) {
- $('#{$option->optionName}').enable();
- }
- else {
- $('#{$option->optionName}').disable();
- }
+ //<![CDATA[
+ $(function() {
+ $('#search_{$option->optionName}').change(function(event) {
+ if ($(event.currentTarget).prop('checked')) {
+ $('#{$option->optionName}').enable();
+
+ {if $inputType === 'date'}
+ $('#{$option->optionName}DatePicker').enable();
+ {/if}
+ }
+ else {
+ $('#{$option->optionName}').disable();
+
+ {if $inputType === 'date'}
+ $('#{$option->optionName}DatePicker').disable();
+ {/if}
+ }
+ });
+
+ {if !$searchOption}
+ $('#{$option->optionName}DatePicker').disable();
+ {/if}
});
-});
-//]]>
+ //]]>
</script>
<input type="{@$inputType}" id="{$option->optionName}" name="values[{$option->optionName}]" value="{$value}"{if $inputClass} class="{@$inputClass}"{/if}{if !$searchOption} disabled="disabled"{/if} />
<script data-relocate="true">
-//<![CDATA[
-$(function() {
- $('#search_{$option->optionName}').change(function(event) {
- if ($(event.currentTarget).prop('checked')) {
- $('#{$option->optionName}').enable();
- }
- else {
- $('#{$option->optionName}').disable();
- }
+ //<![CDATA[
+ $(function() {
+ $('#search_{$option->optionName}').change(function(event) {
+ if ($(event.currentTarget).prop('checked')) {
+ $('#{$option->optionName}').enable();
+
+ {if $inputType === 'date'}
+ $('#{$option->optionName}DatePicker').enable();
+ {/if}
+ }
+ else {
+ $('#{$option->optionName}').disable();
+
+ {if $inputType === 'date'}
+ $('#{$option->optionName}DatePicker').disable();
+ {/if}
+ }
+ });
+
+ {if !$searchOption}
+ $('#{$option->optionName}DatePicker').disable();
+ {/if}
});
-});
-//]]>
+ //]]>
</script>