[10812] | 1 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
[13074] | 2 | <div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> |
---|
[11992] | 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> |
---|
[10824] | 10 | </ul> |
---|
[866] | 11 | |
---|
[11992] | 12 | <h2>{$title}</h2> |
---|
| 13 | </div> |
---|
| 14 | |
---|
[12764] | 15 | {include file='infos_errors.tpl'} |
---|
[866] | 16 | |
---|
[11992] | 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}"> |
---|
[866] | 20 | |
---|
[11992] | 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> |
---|
[866] | 23 | |
---|
[11992] | 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 | |
---|
[12479] | 32 | <p class="bottomButtons"><input type="submit" name="submit" value="{'Change my password'|@translate}"></p> |
---|
[11992] | 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 | |
---|
[12479] | 53 | <p class="bottomButtons"><input type="submit" name="submit" value="{'Submit'|@translate}"></p> |
---|
[11992] | 54 | {/if} |
---|
| 55 | |
---|
[866] | 56 | </form> |
---|
[11992] | 57 | {/if} {* $action ne 'none' *} |
---|
[866] | 58 | |
---|
[11992] | 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 | |
---|
[866] | 67 | </div> <!-- content --> |
---|