Ignore:
Timestamp:
Oct 4, 2011, 10:59:51 PM (13 years ago)
Author:
Zaphod
Message:

version 1.5.2 (piwigo 2.3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/template/password.tpl

    r9134 r12350  
    55<div class="titrePage">
    66        <div class="browsePath">
    7                 <h2><a href="{$U_HOME}" title="{'Go through the gallery as a visitor'|@translate}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{'Password forgotten'|@translate}</h2>
     7                <h2><a href="{$U_HOME}" title="{'Go through the gallery as a visitor'|@translate}">{'Home'|@translate}</a>{$LEVEL_SEPARATOR}{$title}</h2>
    88        </div>
    99</div>
     
    2727                </div>
    2828        {/if}
    29         <form action="{$F_ACTION}" method="post" class="properties">
    30                 <fieldset>
    31                         <legend>{'Retrieve password'|@translate}</legend>
    32                         <ul>
    33                                 <li>
    34                                         <span class="property">
    35                                                 <label for="mail_address">{'Email address'|@translate}</label>
    36                                         </span>
    37                                         <input class="login" type="text" name="mail_address" id="mail_address" size="40" maxlength="40" >
    38                                 </li>
    39                         </ul>
    40                 </fieldset>
    41                 <p><input class="submit" type="submit" name="submit" value="{'Send new password'|@translate}"></p>
    42         </form>
     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
    4379</div> <!-- content -->
Note: See TracChangeset for help on using the changeset viewer.