[10812] | 1 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
[13074] | 2 | <div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> |
---|
[11992] | 3 | <div class="titrePage"> |
---|
[18750] | 4 | <ul class="categoryActions"> |
---|
| 5 | </ul> |
---|
| 6 | |
---|
[14240] | 7 | <h2><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{$title}</h2> |
---|
[11992] | 8 | </div> |
---|
| 9 | |
---|
[12764] | 10 | {include file='infos_errors.tpl'} |
---|
[866] | 11 | |
---|
[11992] | 12 | {if $action ne 'none'} |
---|
| 13 | <form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&key={$key}{/if}" method="post"> |
---|
| 14 | <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> |
---|
[866] | 15 | |
---|
[11992] | 16 | {if $action eq 'lost'} |
---|
| 17 | <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> |
---|
[866] | 18 | |
---|
[11992] | 19 | <p> |
---|
| 20 | <label> |
---|
| 21 | {'Username or email'|@translate} |
---|
| 22 | <br> |
---|
| 23 | <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}> |
---|
| 24 | </label> |
---|
| 25 | </p> |
---|
| 26 | |
---|
[12479] | 27 | <p class="bottomButtons"><input type="submit" name="submit" value="{'Change my password'|@translate}"></p> |
---|
[11992] | 28 | {elseif $action eq 'reset'} |
---|
| 29 | |
---|
| 30 | <div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div> |
---|
| 31 | |
---|
| 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 | |
---|
| 40 | <p> |
---|
| 41 | <label> |
---|
| 42 | {'Confirm Password'|@translate} |
---|
| 43 | <br> |
---|
| 44 | <input type="password" name="passwordConf" id="passwordConf" value=""> |
---|
| 45 | </label> |
---|
| 46 | </p> |
---|
| 47 | |
---|
[12479] | 48 | <p class="bottomButtons"><input type="submit" name="submit" value="{'Submit'|@translate}"></p> |
---|
[11992] | 49 | {/if} |
---|
| 50 | |
---|
[866] | 51 | </form> |
---|
[11992] | 52 | {/if} {* $action ne 'none' *} |
---|
[866] | 53 | |
---|
[11992] | 54 | <script type="text/javascript"> |
---|
| 55 | {if $action eq 'lost'} |
---|
| 56 | {literal}try{document.getElementById('username_or_email').focus();}catch(e){}{/literal} |
---|
| 57 | {elseif $action eq 'reset'} |
---|
| 58 | {literal}try{document.getElementById('use_new_pwd').focus();}catch(e){}{/literal} |
---|
| 59 | {/if} |
---|
| 60 | </script> |
---|
| 61 | |
---|
[866] | 62 | </div> <!-- content --> |
---|