Added proper support for font size and color
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / checkboxesSearchableOptionType.tpl
1 <label><input type="checkbox" id="search_{$option->optionName}" name="searchOptions[{$option->optionName}]"{if $searchOption} checked="checked"{/if} /> {lang}wcf.user.option.searchRadioButtonOption{/lang}</label>
2 {foreach from=$selectOptions key=key item=selectOption}
3 <label><input type="checkbox" name="values[{$option->optionName}][]" value="{$key}" {if $key|in_array:$value} checked="checked"{/if}{if !$searchOption} disabled="disabled"{/if} /> {lang}{@$selectOption}{/lang}</label>
4 {/foreach}
5
6 <script data-relocate="true">
7 //<![CDATA[
8 $(function() {
9 $('#search_{$option->optionName}').change(function(event) {
10 if ($(event.currentTarget).prop('checked')) {
11 $('input[name="values[{$option->optionName}][]"]').enable();
12 }
13 else {
14 $('input[name="values[{$option->optionName}][]"]').disable();
15 }
16 });
17 });
18 //]]>
19 </script>