Added proper support for font size and color
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / userSearch.tpl
1 {include file='header'}
2
3 {if $errorField == 'search'}
4 <p class="error">{lang}wcf.user.search.error.noMatches{/lang}</p>
5 {else}
6 {include file='formError'}
7 {/if}
8
9 <form method="post" action="{link controller='UserSearch'}{/link}">
10 <div class="section">
11 <dl>
12 <dt><label for="searchUsername">{lang}wcf.user.username{/lang}</label></dt>
13 <dd>
14 <input type="text" id="searchUsername" name="username" value="{$username}" class="medium" />
15 </dd>
16 </dl>
17
18 {event name='generalFields'}
19 </div>
20
21 {if !$optionTree|empty}
22 {foreach from=$optionTree[0][categories] item=category}
23 <section class="section">
24 <header class="sectionHeader">
25 <h2 class="sectionTitle">{lang}wcf.user.option.category.{@$category[object]->categoryName}{/lang}</h2>
26 {hascontent}<p class="sectionDescription">{content}{lang __optional=true}wcf.user.option.category.{@$category[object]->categoryName}.description{/lang}{/content}</p>{/hascontent}
27 </header>
28 {include file='userOptionFieldList' options=$category[options] langPrefix='wcf.user.option.' isSearchMode=true}
29 </section>
30 {/foreach}
31 {/if}
32
33 {event name='sections'}
34
35 <div class="formSubmit">
36 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
37 {@SECURITY_TOKEN_INPUT_TAG}
38 </div>
39 </form>
40
41 <script data-relocate="true">
42 //<![CDATA[
43 $(function() {
44 new WCF.Search.User('#searchUsername', null, false, [ ], false);
45 });
46 //]]>
47 </script>
48
49 {include file='footer'}