Fixed select element DOM
authorAlexander Ebert <ebert@woltlab.com>
Fri, 18 Mar 2016 15:39:34 +0000 (16:39 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 18 Mar 2016 15:40:01 +0000 (16:40 +0100)
com.woltlab.wcf/templates/search.tpl
com.woltlab.wcf/templates/selectOptionType.tpl
com.woltlab.wcf/templates/selectSearchableOptionType.tpl

index 9480135d9dc670345b60be6cf109476b9b957f20..9191e57009a9766876f0adf99bb8c7eafe336334 100644 (file)
                <dl>
                        <dt><label for="sortField">{lang}wcf.search.sortBy{/lang}</label></dt>
                        <dd>
-                               <select id="sortField" name="sortField">
-                                       <option value="relevance"{if $sortField == 'relevance'} selected="selected"{/if}>{lang}wcf.search.sortBy.relevance{/lang}</option>
-                                       <option value="subject"{if $sortField == 'subject'} selected="selected"{/if}>{lang}wcf.global.subject{/lang}</option>
-                                       <option value="time"{if $sortField == 'time'} selected="selected"{/if}>{lang}wcf.search.sortBy.time{/lang}</option>
-                                       <option value="username"{if $sortField == 'username'} selected="selected"{/if}>{lang}wcf.search.sortBy.username{/lang}</option>
-                               </select>
+                               <label class="selectDropdown">
+                                       <select id="sortField" name="sortField">
+                                               <option value="relevance"{if $sortField == 'relevance'} selected="selected"{/if}>{lang}wcf.search.sortBy.relevance{/lang}</option>
+                                               <option value="subject"{if $sortField == 'subject'} selected="selected"{/if}>{lang}wcf.global.subject{/lang}</option>
+                                               <option value="time"{if $sortField == 'time'} selected="selected"{/if}>{lang}wcf.search.sortBy.time{/lang}</option>
+                                               <option value="username"{if $sortField == 'username'} selected="selected"{/if}>{lang}wcf.search.sortBy.username{/lang}</option>
+                                       </select>
+                               </label>
                                
-                               <select name="sortOrder">
-                                       <option value="ASC"{if $sortOrder == 'ASC'} selected="selected"{/if}>{lang}wcf.global.sortOrder.ascending{/lang}</option>
-                                       <option value="DESC"{if $sortOrder == 'DESC'} selected="selected"{/if}>{lang}wcf.global.sortOrder.descending{/lang}</option>
-                               </select>
+                               <label class="selectDropdown">
+                                       <select name="sortOrder">
+                                               <option value="ASC"{if $sortOrder == 'ASC'} selected="selected"{/if}>{lang}wcf.global.sortOrder.ascending{/lang}</option>
+                                               <option value="DESC"{if $sortOrder == 'DESC'} selected="selected"{/if}>{lang}wcf.global.sortOrder.descending{/lang}</option>
+                                       </select>
+                               </label>
                                {event name='displayOptions'}
                        </dd>
                </dl>
index bd220fe3cbb89f0d18e1da039c1657a807bb1c60..ea30b398aa77139407591fd963f04b76e02386c6 100644 (file)
@@ -1,6 +1,8 @@
-<select id="{$option->optionName}" name="values[{$option->optionName}]">
-       {if !$allowEmptyValue|empty}<option value="">{lang}wcf.global.noSelection{/lang}</option>{/if}
-       {foreach from=$selectOptions key=key item=selectOption}
-               <option value="{$key}"{if $value == $key} selected="selected"{/if}>{lang}{@$selectOption}{/lang}</option>
-       {/foreach}
-</select>
\ No newline at end of file
+<label class="selectDropdown">
+       <select id="{$option->optionName}" name="values[{$option->optionName}]">
+               {if !$allowEmptyValue|empty}<option value="">{lang}wcf.global.noSelection{/lang}</option>{/if}
+               {foreach from=$selectOptions key=key item=selectOption}
+                       <option value="{$key}"{if $value == $key} selected="selected"{/if}>{lang}{@$selectOption}{/lang}</option>
+               {/foreach}
+       </select>
+</label>
index cb54c0476fb1d26f4e1c7aad149f129fa5fdc8a6..ce95ace340433bfb944c765920ad9a839c705b06 100644 (file)
@@ -1,10 +1,12 @@
 <label><input type="checkbox" id="search_{$option->optionName}" name="searchOptions[{$option->optionName}]"{if $searchOption} checked="checked"{/if} /> {lang}wcf.user.option.searchRadioButtonOption{/lang}</label>
-<select id="{$option->optionName}" name="values[{$option->optionName}]"{if !$searchOption} disabled="disabled"{/if}>
-       {if !$allowEmptyValue|empty}<option value="">{lang}wcf.global.noSelection{/lang}</option>{/if}
-       {foreach from=$selectOptions key=key item=selectOption}
-               <option value="{$key}"{if $value == $key} selected="selected"{/if}>{lang}{@$selectOption}{/lang}</option>
-       {/foreach}
-</select>
+<label class="selectDropdown">
+       <select id="{$option->optionName}" name="values[{$option->optionName}]"{if !$searchOption} disabled="disabled"{/if}>
+               {if !$allowEmptyValue|empty}<option value="">{lang}wcf.global.noSelection{/lang}</option>{/if}
+               {foreach from=$selectOptions key=key item=selectOption}
+                       <option value="{$key}"{if $value == $key} selected="selected"{/if}>{lang}{@$selectOption}{/lang}</option>
+               {/foreach}
+       </select>
+</label>
 
 <script data-relocate="true">
 //<![CDATA[