source: extensions/Slim/template/password.tpl @ 19205

Last change on this file since 19205 was 18811, checked in by Miklfe, 12 years ago
File size: 2.2 KB
Line 
1{php}   global $Slim;   $this->assign( 'Slim', $Slim );{/php}
2
3{if ($Slim.style_slim)==1}
4
5{php}
6header("Refresh: 2; index.php" );
7{/php}
8
9<div>
10<h3>{'You are not authorized to access the requested page'|@translate}</h3>
11</div>
12{else}
13{$MENUBAR}
14<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
15  <div class="titrePage">
16  <div id="infoBlock">
17    <ul class="categoryActions">
18    </ul>
19
20    <h2><a href="{$U_HOME}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{$title}</h2>
21  </div>
22</div>
23{include file='infos_errors.tpl'}
24
25{if $action ne 'none'}
26<form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&amp;key={$key}{/if}" method="post">
27  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
28
29  {if $action eq 'lost'}
30  <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>
31
32  <p>
33    <label>
34      {'Username or email'|@translate}
35      <br>
36      <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}>
37    </label>
38  </p>
39
40  <p class="bottomButtons"><input type="submit" name="submit" value="{'Change my password'|@translate}"></p>
41  {elseif $action eq 'reset'}
42
43  <div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div>
44
45  <p>
46    <label>
47      {'New password'|@translate}
48      <br>
49      <input type="password" name="use_new_pwd" id="use_new_pwd" value="">
50    </label>
51  </p>
52
53  <p>
54    <label>
55      {'Confirm Password'|@translate}
56      <br>
57      <input type="password" name="passwordConf" id="passwordConf" value="">
58    </label>
59  </p>
60
61  <p class="bottomButtons"><input type="submit" name="submit" value="{'Submit'|@translate}"></p>
62  {/if}
63
64</form>
65{/if} {* $action ne 'none' *}
66
67<script type="text/javascript">
68{if $action eq 'lost'}
69{literal}try{document.getElementById('username_or_email').focus();}catch(e){}{/literal}
70{elseif $action eq 'reset'}
71{literal}try{document.getElementById('use_new_pwd').focus();}catch(e){}{/literal}
72{/if}
73</script>
74
75</div> <!-- content -->
76{/if}
Note: See TracBrowser for help on using the repository browser.