Fixed HTML5 issues
authorMarcel Werk <burntime@woltlab.com>
Wed, 22 May 2013 13:20:25 +0000 (15:20 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 22 May 2013 13:20:25 +0000 (15:20 +0200)
com.woltlab.wcf/template/birthdaySearchableOptionType.tpl
com.woltlab.wcf/template/radioButtonOptionType.tpl
com.woltlab.wcf/template/userSearch.tpl

index c8e5aeb9e188293dc834cbd7ba5212af72e8fa52..29760df57b3e343a7d2f35fe72ffc513b98e5ca5 100644 (file)
@@ -1,10 +1,10 @@
-<input type="number" id="{$option->optionName}_age_from" name="values[{$option->optionName}][ageFrom]" value="{@$valueAgeFrom}" placeholder="{lang}wcf.user.birthday.age.from{/lang}" min="0" max="120" class="tiny" />
+<input type="number" id="{$option->optionName}" name="values[{$option->optionName}][ageFrom]" value="{@$valueAgeFrom}" placeholder="{lang}wcf.user.birthday.age.from{/lang}" min="0" max="120" class="tiny" />
 <input type="number" id="{$option->optionName}_age_to" name="values[{$option->optionName}][ageTo]" value="{@$valueAgeTo}" placeholder="{lang}wcf.user.birthday.age.to{/lang}" min="0" max="120" class="tiny" />
 
 <script type="text/javascript">
 //<![CDATA[
 $(function() {
-       $('#{$option->optionName}_age_from').parents('dl:eq(0)').find('> dt > label').text('{lang}wcf.user.birthday.age{/lang}').attr('for', '{$option->optionName}_age_from');
+       $('#{$option->optionName}').parents('dl:eq(0)').find('> dt > label').text('{lang}wcf.user.birthday.age{/lang}');
 });
 //]]>
 </script>
\ No newline at end of file
index c24b6607b7752592e6fff93db8006036bf0aca40..763c9db93f805233868b552c24fdf9f1623a5339 100644 (file)
@@ -1,3 +1,3 @@
-{foreach from=$selectOptions key=key item=selectOption}
-       <label><input type="radio" name="values[{$option->optionName}]" value="{$key}" {if $value == $key} checked="checked"{/if} {if $disableOptions[$key]|isset || $enableOptions[$key]|isset}class="jsEnablesOptions" data-disable-options="[ {@$disableOptions[$key]}]" data-enable-options="[ {@$enableOptions[$key]}]"{/if} /> {lang}{@$selectOption}{/lang}</label>
+{foreach name=radioButtons from=$selectOptions key=key item=selectOption}
+       <label><input {if $tpl.foreach.radioButtons.first}id="{$option->optionName}" {/if}type="radio" name="values[{$option->optionName}]" value="{$key}" {if $value == $key} checked="checked"{/if} {if $disableOptions[$key]|isset || $enableOptions[$key]|isset}class="jsEnablesOptions" data-disable-options="[ {@$disableOptions[$key]}]" data-enable-options="[ {@$enableOptions[$key]}]"{/if} /> {lang}{@$selectOption}{/lang}</label>
 {/foreach}
index ab804ce2dfc7c929ea523fa2c8e893b986c3afec..db534a1ddbc6cfe7a2fc53b330aa145eabb2cf92 100644 (file)
@@ -50,9 +50,9 @@
                        <legend>{lang}wcf.acp.user.search.conditions.general{/lang}</legend>
                        
                        <dl>
-                               <dt><label for="username">{lang}wcf.user.username{/lang}</label></dt>
+                               <dt><label for="searchUsername">{lang}wcf.user.username{/lang}</label></dt>
                                <dd>
-                                       <input type="text" id="username" name="username" value="{$username}" class="medium" />
+                                       <input type="text" id="searchUsername" name="username" value="{$username}" class="medium" />
                                </dd>
                        </dl>