Merge remote-tracking branch 'refs/remotes/origin/next' into next-lantia
[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='sidebarRight'}
20 {@$__boxSidebar}
21 {/capture}
22
23 {include file='header'}
24
25 <header class="contentHeader">
26 <h1 class="contentTitle">{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="section">
51 <dl>
52 <dt><label for="searchUsername">{lang}wcf.user.username{/lang}</label></dt>
53 <dd>
54 <input type="text" id="searchUsername" name="username" value="{$username}" class="medium" />
55 </dd>
56 </dl>
57
58 {event name='generalFields'}
59 </div>
60
61 {if !$optionTree|empty}
62 {foreach from=$optionTree[0][categories] item=category}
63 <section class="section">
64 <header class="sectionHeader">
65 <h2 class="sectionTitle">{lang}wcf.user.option.category.{@$category[object]->categoryName}{/lang}</h2>
66 {hascontent}<p class="sectionDescription">{content}{lang __optional=true}wcf.user.option.category.{@$category[object]->categoryName}.description{/lang}{/content}</p>{/hascontent}
67 </header>
68 {include file='userOptionFieldList' options=$category[options] langPrefix='wcf.user.option.' isSearchMode=true}
69 </section>
70 {/foreach}
71 {/if}
72
73 {event name='sections'}
74
75 <div class="formSubmit">
76 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
77 {@SECURITY_TOKEN_INPUT_TAG}
78 </div>
79 </form>
80
81 {include file='footer'}
82
83 </body>
84 </html>