1 | <div class="titrePage"> |
---|
2 | <div class="browsePath"> |
---|
3 | <h2> |
---|
4 | {if isset($MENUBAR)} |
---|
5 | <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span> |
---|
6 | {/if} |
---|
7 | <a href="{$U_HOME}">{'Home'|@translate}</a> |
---|
8 | {$LEVEL_SEPARATOR}{$title} |
---|
9 | </h2> |
---|
10 | </div> |
---|
11 | </div> |
---|
12 | <div id="content"> |
---|
13 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
14 | <div id="content_cell"> |
---|
15 | <div class="content_block"> |
---|
16 | {include file='infos_errors.tpl'} |
---|
17 | {if $action ne 'none'} |
---|
18 | <form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&key={$key}{/if}" method="post"> |
---|
19 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
20 | {if $action eq 'lost'} |
---|
21 | <div class="message">{'Please enter your username or email address.'|@translate} {'You will receive a link to create a new password via email.'|@translate}</div> |
---|
22 | <p> |
---|
23 | <label> |
---|
24 | {'Username or email'|@translate} |
---|
25 | <br> |
---|
26 | <input type="text" id="username_or_email" name="username_or_email" size="40" maxlength="40"{if isset($username_or_email)} value="{$username_or_email}"{/if}> |
---|
27 | </label> |
---|
28 | </p> |
---|
29 | <p class="bottomButtons"><input class="submit" type="submit" name="submit" value="{'Change my password'|@translate}"></p> |
---|
30 | {elseif $action eq 'reset'} |
---|
31 | <div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div> |
---|
32 | <p> |
---|
33 | <label> |
---|
34 | {'New password'|@translate} |
---|
35 | <br> |
---|
36 | <input type="password" name="use_new_pwd" id="use_new_pwd" value=""> |
---|
37 | </label> |
---|
38 | </p> |
---|
39 | <p> |
---|
40 | <label> |
---|
41 | {'Confirm Password'|@translate} |
---|
42 | <br> |
---|
43 | <input type="password" name="passwordConf" id="passwordConf" value=""> |
---|
44 | </label> |
---|
45 | </p> |
---|
46 | <p class="bottomButtons"><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"></p> |
---|
47 | {/if} |
---|
48 | </form> |
---|
49 | {/if} {* $action ne 'none' *} |
---|
50 | |
---|
51 | <script type="text/javascript"> |
---|
52 | {if $action eq 'lost'} |
---|
53 | {literal}try{document.getElementById('username_or_email').focus();}catch(e){}{/literal} |
---|
54 | {elseif $action eq 'reset'} |
---|
55 | {literal}try{document.getElementById('use_new_pwd').focus();}catch(e){}{/literal} |
---|
56 | {/if} |
---|
57 | </script> |
---|
58 | </div> |
---|
59 | </div> |
---|
60 | </div> <!-- content --> |
---|