Merge branch '2.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / userSearch.tpl
1 {include file='documentHeader'}
2
3 <head>
4 <title>{lang}wcf.user.search{/lang} - {PAGE_TITLE|language}</title>
5
6 {include file='headInclude'}
7
8 <script data-relocate="true">
9 //<![CDATA[
10 $(function() {
11 new WCF.Search.User('#searchUsername', null, false, [ ], false);
12 });
13 //]]>
14 </script>
15 </head>
16
17 <body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}">
18
19 {capture assign='sidebar'}
20 {@$__boxSidebar}
21 {/capture}
22
23 {include file='header' sidebarOrientation='right'}
24
25 <header class="boxHeadline">
26 <h1>{lang}wcf.user.search{/lang}</h1>
27 </header>
28
29 {include file='userNotice'}
30
31 {if $errorField == 'search'}
32 <p class="error">{lang}wcf.user.search.error.noMatches{/lang}</p>
33 {else}
34 {include file='formError'}
35 {/if}
36
37 <div class="contentNavigation">
38 {hascontent}
39 <nav>
40 <ul>
41 {content}
42 {event name='contentNavigationButtons'}
43 {/content}
44 </ul>
45 </nav>
46 {/hascontent}
47 </div>
48
49 <form method="post" action="{link controller='UserSearch'}{/link}">
50 <div class="container containerPadding marginTop">
51 <fieldset>
52 <legend>{lang}wcf.acp.user.search.conditions.general{/lang}</legend>
53
54 <dl>
55 <dt><label for="searchUsername">{lang}wcf.user.username{/lang}</label></dt>
56 <dd>
57 <input type="text" id="searchUsername" name="username" value="{$username}" class="medium" />
58 </dd>
59 </dl>
60
61 {event name='generalFields'}
62 </fieldset>
63
64 {if !$optionTree|empty}
65 {foreach from=$optionTree[0][categories] item=category}
66 <fieldset>
67 <legend>{lang}wcf.user.option.category.{@$category[object]->categoryName}{/lang}</legend>
68 {hascontent}<p>{content}{lang __optional=true}wcf.user.option.category.{@$category[object]->categoryName}.description{/lang}{/content}</p>{/hascontent}
69
70 {include file='userOptionFieldList' options=$category[options] langPrefix='wcf.user.option.' isSearchMode=true}
71 </fieldset>
72 {/foreach}
73 {/if}
74 </div>
75
76 {event name='fieldsets'}
77
78 <div class="formSubmit">
79 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
80 {@SECURITY_TOKEN_INPUT_TAG}
81 </div>
82 </form>
83
84 {include file='footer'}
85
86 </body>
87 </html>