source: extensions/stripped/template/password.tpl @ 12350

Last change on this file since 12350 was 12350, checked in by Zaphod, 13 years ago

version 1.5.2 (piwigo 2.3)

File size: 2.3 KB
Line 
1{php}
2        global $conf;
3        $this->assign('LEVEL_SEPARATOR', $conf[ 'level_separator' ]);
4{/php}
5<div class="titrePage">
6        <div class="browsePath">
7                <h2><a href="{$U_HOME}" title="{'Go through the gallery as a visitor'|@translate}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{$title}</h2>
8        </div>
9</div>
10<div id="content">
11        {if count($errors)}
12                <div class="errors">
13                        <ul>
14                                {foreach from=$errors item=error}
15                                        <li>{$error}</li>
16                                {/foreach}
17                        </ul>
18                </div>
19        {/if}
20        {if count($infos)}
21                <div class="infos">
22                        <ul>
23                                {foreach from=$infos item=info}
24                                        <li>{$info}</li>
25                                {/foreach}
26                        </ul>
27                </div>
28        {/if}
29{if $action ne 'none'}
30<form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&amp;key={$key}{/if}" method="post">
31  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
32
33  {if $action eq 'lost'}
34  <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>
35
36  <p>
37    <label>
38      {'Username or email'|@translate}
39      <br>
40      <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}>
41    </label>
42  </p>
43
44  <p class="bottomButtons"><input class="submit" type="submit" name="submit" value="{'Change my password'|@translate}"></p>
45  {elseif $action eq 'reset'}
46
47  <div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div>
48
49  <p>
50    <label>
51      {'New password'|@translate}
52      <br>
53      <input type="password" name="use_new_pwd" id="use_new_pwd" value="">
54    </label>
55  </p>
56
57  <p>
58    <label>
59      {'Confirm Password'|@translate}
60      <br>
61      <input type="password" name="passwordConf" id="passwordConf" value="">
62    </label>
63  </p>
64
65  <p class="bottomButtons"><input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"></p>
66  {/if}
67
68</form>
69{/if} {* $action ne 'none' *}
70
71<script type="text/javascript">
72{if $action eq 'lost'}
73{literal}try{document.getElementById('username_or_email').focus();}catch(e){}{/literal}
74{elseif $action eq 'reset'}
75{literal}try{document.getElementById('use_new_pwd').focus();}catch(e){}{/literal}
76{/if}
77</script>
78
79</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.