1 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
2 | <div id="content" class="content"> |
---|
3 | <div class="titrePage"> |
---|
4 | <ul class="categoryActions"> |
---|
5 | <li> |
---|
6 | <a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button"> |
---|
7 | <span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span> |
---|
8 | </a> |
---|
9 | </li> |
---|
10 | </ul> |
---|
11 | |
---|
12 | <h2>{$title}</h2> |
---|
13 | </div> |
---|
14 | |
---|
15 | {include file='infos_errors.tpl'} |
---|
16 | |
---|
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 | |
---|
21 | {if $action eq 'lost'} |
---|
22 | <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> |
---|
23 | |
---|
24 | <p> |
---|
25 | <label> |
---|
26 | {'Username or email'|@translate} |
---|
27 | <br> |
---|
28 | <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}> |
---|
29 | </label> |
---|
30 | </p> |
---|
31 | |
---|
32 | <p class="bottomButtons"><input type="submit" name="submit" value="{'Change my password'|@translate}"></p> |
---|
33 | {elseif $action eq 'reset'} |
---|
34 | |
---|
35 | <div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div> |
---|
36 | |
---|
37 | <p> |
---|
38 | <label> |
---|
39 | {'New password'|@translate} |
---|
40 | <br> |
---|
41 | <input type="password" name="use_new_pwd" id="use_new_pwd" value=""> |
---|
42 | </label> |
---|
43 | </p> |
---|
44 | |
---|
45 | <p> |
---|
46 | <label> |
---|
47 | {'Confirm Password'|@translate} |
---|
48 | <br> |
---|
49 | <input type="password" name="passwordConf" id="passwordConf" value=""> |
---|
50 | </label> |
---|
51 | </p> |
---|
52 | |
---|
53 | <p class="bottomButtons"><input type="submit" name="submit" value="{'Submit'|@translate}"></p> |
---|
54 | {/if} |
---|
55 | |
---|
56 | </form> |
---|
57 | {/if} {* $action ne 'none' *} |
---|
58 | |
---|
59 | <script type="text/javascript"> |
---|
60 | {if $action eq 'lost'} |
---|
61 | {literal}try{document.getElementById('username_or_email').focus();}catch(e){}{/literal} |
---|
62 | {elseif $action eq 'reset'} |
---|
63 | {literal}try{document.getElementById('use_new_pwd').focus();}catch(e){}{/literal} |
---|
64 | {/if} |
---|
65 | </script> |
---|
66 | |
---|
67 | </div> <!-- content --> |
---|