Merge branch 'master' into next
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / lostPassword.tpl
1 {capture assign='pageTitle'}{lang}wcf.user.lostPassword{/lang}{/capture}
2
3 {capture assign='contentTitle'}{lang}wcf.user.lostPassword{/lang}{/capture}
4
5 {include file='header'}
6
7 <p class="info">{lang}wcf.user.lostPassword.description{/lang}</p>
8
9 {include file='formError'}
10
11 <form method="post" action="{link controller='LostPassword'}{/link}">
12 <div class="section">
13 <dl id="usernameDiv"{if $errorField == 'username'} class="formError"{/if}>
14 <dt>
15 <label for="usernameInput">{lang}wcf.user.username{/lang}</label>
16 </dt>
17 <dd>
18 <input type="text" id="usernameInput" name="username" value="{$username}" class="medium" />
19 {if $errorField == 'username'}
20 <small class="innerError">
21 {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
22 {if $errorType == 'notFound'}{lang}wcf.user.username.error.notFound{/lang}{/if}
23 {if $errorType == '3rdParty'}{lang}wcf.user.username.error.3rdParty{/lang}{/if}
24 </small>
25 {/if}
26 </dd>
27 </dl>
28
29 <dl id="emailDiv"{if $errorField == 'email'} class="formError"{/if}>
30 <dt>
31 <label for="emailInput">{lang}wcf.user.email{/lang}</label>
32 </dt>
33 <dd>
34 <input type="email" id="emailInput" name="email" value="{$email}" class="medium" />
35 {if $errorField == 'email'}
36 <small class="innerError">
37 {if $errorType == 'empty'}{lang}wcf.global.form.error.empty{/lang}{/if}
38 {if $errorType == 'notFound'}{lang}wcf.user.lostPassword.email.error.notFound{/lang}{/if}
39 </small>
40 {/if}
41 </dd>
42 </dl>
43
44 {event name='fields'}
45 </div>
46
47 {event name='sections'}
48
49 {include file='captcha'}
50
51 <div class="formSubmit">
52 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
53 {@SECURITY_TOKEN_INPUT_TAG}
54 </div>
55 </form>
56
57 <script data-relocate="true">
58 //<![CDATA[
59 $(function() {
60 new WCF.User.Registration.LostPassword();
61 });
62 //]]>
63 </script>
64
65 {include file='footer'}