2011-05-07 15:55:10 +00:00
{ if isset ( $MENUBAR ) } { $MENUBAR } { /if }
2008-05-20 00:27:26 +00:00
<div id="content" class="content">
2011-08-24 20:03:53 +00:00
<div class="titrePage">
<ul class="categoryActions">
<li>
<a href=" { $U_HOME } " title=" { 'Home' | @ translate } " class="pwg-state-default pwg-button">
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text"> { 'Home' | @ translate } </span>
</a>
</li>
2011-05-09 15:04:15 +00:00
</ul>
2011-08-24 20:03:53 +00:00
<h2> { $title } </h2>
</div>
2005-09-18 00:29:49 +00:00
2008-02-28 02:41:48 +00:00
{ if count ( $errors ) }
2005-09-18 00:29:49 +00:00
<div class="errors">
<ul>
2008-02-28 02:41:48 +00:00
{ foreach from = $errors item = error }
<li> { $error } </li>
{ /foreach }
2005-09-18 00:29:49 +00:00
</ul>
</div>
2008-02-28 02:41:48 +00:00
{ /if }
2005-09-18 00:29:49 +00:00
2008-02-28 02:41:48 +00:00
{ if count ( $infos ) }
2005-09-18 00:29:49 +00:00
<div class="infos">
<ul>
2008-02-28 02:41:48 +00:00
{ foreach from = $infos item = info }
<li> { $info } </li>
{ /foreach }
2005-09-18 00:29:49 +00:00
</ul>
</div>
2008-02-28 02:41:48 +00:00
{ /if }
2005-09-18 00:29:49 +00:00
2011-08-24 20:03:53 +00:00
{ if $action ne 'none' }
<form id="lostPassword" action=" { $form_action } ?action= { $action } { if isset ( $key ) } &key= { $key } { /if } " method="post">
<input type="hidden" name="pwg_token" value=" { $PWG_TOKEN } ">
2005-09-18 00:29:49 +00:00
2011-08-24 20:03:53 +00:00
{ if $action eq 'lost' }
<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>
<p>
<label>
{ 'Username or email' | @ translate }
<br>
<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 } >
</label>
</p>
<p class="bottomButtons"><input class="submit" type="submit" name="submit" value=" { 'Change my password' | @ translate } "></p>
{ elseif $action eq 'reset' }
<div class="message"> { 'Hello' | @ translate } <em> { $username } </em>. { 'Enter your new password below.' | @ translate } </div>
<p>
<label>
{ 'New password' | @ translate }
<br>
<input type="password" name="use_new_pwd" id="use_new_pwd" value="">
</label>
</p>
<p>
<label>
{ 'Confirm Password' | @ translate }
<br>
<input type="password" name="passwordConf" id="passwordConf" value="">
</label>
</p>
<p class="bottomButtons"><input class="submit" type="submit" name="submit" value=" { 'Submit' | @ translate } "></p>
{ /if }
2005-09-18 00:29:49 +00:00
</form>
2011-08-24 20:03:53 +00:00
{ /if } { * $action ne 'none' * }
<script type="text/javascript">
{ if $action eq 'lost' }
{ literal } try { document . getElementById ( 'username_or_email' ) . focus ( ) ; } catch(e) { } { /literal }
{ elseif $action eq 'reset' }
{ literal } try { document . getElementById ( 'use_new_pwd' ) . focus ( ) ; } catch(e) { } { /literal }
{ /if }
</script>
2005-09-18 00:29:49 +00:00
</div> <!-- content -->