Ignore:
Timestamp:
Mar 14, 2012, 2:50:34 PM (12 years ago)
Author:
plg
Message:

import theme Simple version 2.5

  • use media queries to adapt layout for small screens
  • remove arbitrary limit on width: the picture will simply be partially hidden if too wide
  • update password.tpl
  • add MENUBAR on all pages
  • Spelling correction in README
  • update url
  • bugfix for the feature 'open external links in new window' for menubar links
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/simple_themes/simple/template/password.tpl

    r13551 r13555  
    66</div>
    77<div id="content">
     8{if isset($MENUBAR)}{$MENUBAR}{/if}
    89  {if count($errors)}
    910  <div class="errors">
     
    1516  </div>
    1617  {/if}
     18
    1719  {if count($infos)}
    1820  <div class="infos">
     
    2426  </div>
    2527  {/if}
    26   <form action="{$F_ACTION}" method="post" class="properties">
    27     <fieldset>
    28       <legend>{'Retrieve password'|@translate}</legend>
    29       <ul>
    30         <li>
    31         <span class="property">
    32             <label for="mail_address">{'Email address'|@translate}</label>
    33         </span>
    34         <input class="login" type="text" name="mail_address" id="mail_address" size="40" maxlength="40" >
    35         </li>
    36         <li>
    37         <span class="property">
    38             <label for="no_mail_address">{'No email address'|@translate}</label>
    39         </span>
    40           <input type="checkbox" id="no_mail_address" name="no_mail_address" value="1">
    41         </li>
    42       </ul>
    43     </fieldset>
    44     <p><input class="submit" type="submit" name="submit" value="{'Send new password'|@translate}"></p>
     28
     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
    4568  </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
    4679</div> <!-- content -->
Note: See TracChangeset for help on using the changeset viewer.