Commit | Line | Data |
---|---|---|
95961bdf | 1 | {include file='header'} |
320f4a6d | 2 | |
320f4a6d MW |
3 | {if $errorField == 'search'} |
4 | <p class="error">{lang}wcf.user.search.error.noMatches{/lang}</p> | |
91b52c73 MS |
5 | {else} |
6 | {include file='formError'} | |
320f4a6d MW |
7 | {/if} |
8 | ||
320f4a6d | 9 | <form method="post" action="{link controller='UserSearch'}{/link}"> |
95961bdf MW |
10 | <div class="section"> |
11 | <dl> | |
12 | <dt><label for="searchUsername">{lang}wcf.user.username{/lang}</label></dt> | |
13 | <dd> | |
e5f9b56c | 14 | <input type="text" id="searchUsername" name="username" value="{$username}" class="medium"> |
95961bdf MW |
15 | </dd> |
16 | </dl> | |
320f4a6d | 17 | |
95961bdf | 18 | {event name='generalFields'} |
320f4a6d MW |
19 | </div> |
20 | ||
95961bdf MW |
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'} | |
320f4a6d MW |
34 | |
35 | <div class="formSubmit"> | |
e5f9b56c | 36 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s"> |
ee629b22 | 37 | {@SECURITY_TOKEN_INPUT_TAG} |
320f4a6d MW |
38 | </div> |
39 | </form> | |
40 | ||
3e93caf9 | 41 | <script data-relocate="true"> |
3e93caf9 MW |
42 | $(function() { |
43 | new WCF.Search.User('#searchUsername', null, false, [ ], false); | |
44 | }); | |
3e93caf9 | 45 | </script> |
320f4a6d | 46 | |
3e93caf9 | 47 | {include file='footer'} |