source: trunk/themes/default/template/password.tpl @ 24966

Revision 24966, 2.0 KB checked in by rvelices, 6 years ago (diff)

removed unused css rules, password recover form has a fieldset as all other forms, no exit if mail send fails

  • Property svn:eol-style set to LF
Line 
1{if isset($MENUBAR)}{$MENUBAR}{/if}
2<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
3  <div class="titrePage">
4    <ul class="categoryActions">
5    </ul>
6
7    <h2><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{$title}</h2>
8  </div>
9
10{include file='infos_errors.tpl'}
11
12{if $action ne 'none'}
13<form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&amp;key={$key}{/if}" method="post">
14<fieldset>
15        <legend>{'Forgot your password?'|translate}</legend>
16  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
17
18  {if $action eq 'lost'}
19  <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>
20
21  <p>
22    <label>
23      {'Username or email'|@translate}
24      <br>
25      <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}>
26    </label>
27  </p>
28
29  <p class="bottomButtons"><input type="submit" name="submit" value="{'Change my password'|@translate}"></p>
30  {elseif $action eq 'reset'}
31
32  <div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div>
33
34  <p>
35    <label>
36      {'New password'|@translate}
37      <br>
38      <input type="password" name="use_new_pwd" id="use_new_pwd" value="">
39    </label>
40  </p>
41
42  <p>
43    <label>
44      {'Confirm Password'|@translate}
45      <br>
46      <input type="password" name="passwordConf" id="passwordConf" value="">
47    </label>
48  </p>
49</fieldset>
50  <p class="bottomButtons"><input type="submit" name="submit" value="{'Submit'|@translate}"></p>
51  {/if}
52
53</form>
54{/if} {* $action ne 'none' *}
55
56<script type="text/javascript">
57{if $action eq 'lost'}
58{literal}try{document.getElementById('username_or_email').focus();}catch(e){}{/literal}
59{elseif $action eq 'reset'}
60{literal}try{document.getElementById('use_new_pwd').focus();}catch(e){}{/literal}
61{/if}
62</script>
63
64</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.