Changeset 1310

Show
Ignore:
Timestamp:
11/29/07 17:14:10 (1 year ago)
Author:
benoitg
Message:
  • signup.tpl, lost_username.tpl, lost_password.tpl, resend_validation.tpl: Move the error div near the button for coherence with the login page (and for the same reason). In fact it was worse than the login page used to be: the error message during signup could appear completely below the page for a user with a low resolution screeen (or big font), giving the form the apereance of doing absolutely nothing (it stumped even me as I was trying to help a user).
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wifidog-auth/CHANGELOG

    r1309 r1310  
    11# $Id$ 
     22007-11-29 Benoit GrĂ©goire  <bock@step.polymtl.ca> 
     3        * signup.tpl, lost_username.tpl, lost_password.tpl, resend_validation.tpl:  Move the error div near the button for coherence with the login page (and for the same reason).  In fact it was worse than the login page used to be:  the error message during signup could appear completely below the page for a user with a low resolution screeen (or big font), giving the form the apereance of doing absolutely nothing (it stumped even me as I was trying to help a user). 
     4 
    252007-11-23 Benoit GrĂ©goire  <bock@step.polymtl.ca> 
    36        * UIUserList.php: Don't force it to be persistent, it prevented users from deleting it. 
  • trunk/wifidog-auth/wifidog/templates/sites/lost_password.tpl

    r1220 r1310  
    9393                <tr> 
    9494                    <th></th> 
    95                     <td><input class="submit" type="submit" name="form_submit" value="{"Reset my password"|_}" {* onclick="if (validateForm(this.form)) this.form.submit()" *}></td> 
     95                    <td> 
     96                                        <div id="form_errormsg" class="errormsg"> 
     97                                                {if $error} 
     98                                                        {$error} 
     99                                                {/if} 
     100                                                </div> 
     101                        <input class="submit" type="submit" name="form_submit" value="{"Reset my password"|_}" {* onclick="if (validateForm(this.form)) this.form.submit()" *}> 
     102                        </td> 
    96103                </tr> 
    97104            </table> 
     
    103110    </div> 
    104111 
    105     <div id="form_errormsg" class="errormsg"> 
    106     {if $error} 
    107                 {$error} 
    108         {/if} 
    109         </div> 
    110112{*  If no one steps-in to maintain this, it will be removed benoitg 2006-11-26 
    111113    <script type="text/javascript"> 
  • trunk/wifidog-auth/wifidog/templates/sites/lost_username.tpl

    r1220 r1310  
    8383            {"Your email address"|_}:  
    8484            <input type="text" name="email" value="{$email}" size="20" id="form_email" {*onkeypress="return focusNext(this.form, 'form_submit', event)"*}> 
     85                        <div id="form_errormsg" class="errormsg"> 
     86                                {if $error} 
     87                                        {$error} 
     88                                {/if} 
     89                        </div> 
    8590                        <input class="submit" type="submit" name="form_submit" value="{"Retrieve"|_}" {*onclick="if (validateForm(this.form)) this.form.submit()"*}> 
    8691        </form> 
     
    9095                {"Please enter your email address to recover your username"|_}. 
    9196    </div> 
    92  
    93         <div id="form_errormsg" class="errormsg"> 
    94         {if $error} 
    95                 {$error} 
    96         {/if} 
    97         </div> 
    9897 
    9998{*   If no one steps-in to maintain this, it will be removed benoitg 2006-11-26 
  • trunk/wifidog-auth/wifidog/templates/sites/resend_validation.tpl

    r1220 r1310  
    8989                <tr> 
    9090                    <th></th> 
    91                     <td><input class="submit" type="submit" name="form_submit" value="{"Re-send"|_}"{* onclick="if (validateForm(this.form)) this.form.submit()" *}></td> 
     91                    <td> 
     92                        <div id="form_errormsg" class="errormsg"> 
     93                                                        {if $error} 
     94                                                                {$error} 
     95                                                        {/if} 
     96                                                </div> 
     97                                                <input class="submit" type="submit" name="form_submit" value="{"Re-send"|_}"{* onclick="if (validateForm(this.form)) this.form.submit()" *}> 
     98                                        </td> 
    9299                </tr> 
    93100            </table> 
     
    98105        {"Please enter your username and the validation email will be resent to your email address"|_}. 
    99106    </div> 
    100  
    101         <div id="form_errormsg" class="errormsg"> 
    102         {if $error} 
    103                 {$error} 
    104         {/if} 
    105         </div> 
    106107 
    107108  {*  If no one steps-in to maintain this, it will be removed benoitg 2006-11-26 
  • trunk/wifidog-auth/wifidog/templates/sites/signup.tpl

    r1220 r1310  
    101101            <tr> 
    102102                <th></th> 
    103                 <td><input class="submit" type="submit" name="form_submit" value="{"Sign-up"|_}" onclick="if (validateForm(this.form)) this.form.submit()"></td> 
     103                <td> 
     104                    <div id="form_errormsg" class="errormsg"> 
     105                                        {if $error != null} 
     106                                                  {$error} 
     107                                        {/if} 
     108                                        </div> 
     109                <input class="submit" type="submit" name="form_submit" value="{"Sign-up"|_}" onclick="if (validateForm(this.form)) this.form.submit()"> 
     110                </td> 
    104111            </tr> 
    105112        </table> 
     
    132139    </p> 
    133140</fieldset> 
    134  
    135     <div id="form_errormsg" class="errormsg"> 
    136         {if $error != null} 
    137                   {$error} 
    138         {/if} 
    139         </div> 
    140141 
    141142    <script type="text/javascript">