Changeset 27154


Ignore:
Timestamp:
04/04/13 12:32:59 (8 years ago)
Author:
sjm84
Message:

The login screen will now automatically focus the username field

Location:
main/trunk/greenstone3/web/interfaces/default/transform/pages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/authen.xsl

    r25867 r27154  
    5858                        </table>
    5959                    </form>
     60                    <script type="text/javascript">
     61                        <xsl:text disable-output-escaping="yes">
     62                        {
     63                            $("#loginTable input[name=\"username\"]").focus();
     64                        }
     65                        </xsl:text>
     66                    </script>
    6067                </xsl:when>
    6168
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/login.xsl

    r25359 r27154  
    2525        <br/>
    2626        </xsl:if>
    27         <form method="post" action="{/page/pageRequest/paramList/param[@name = 'redirectURL']/@value}">
     27        <form method="POST" action="{/page/pageRequest/paramList/param[@name = 'redirectURL']/@value}">
    2828            <table id="loginTable">
    29                 <tr><td>Username: </td><td><input type="text" name="username"/></td></tr>
    30                 <tr><td>Password: </td><td><input type="password" name="password"/></td></tr>
     29                <tr><td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/>: </td><td><input type="text" name="username"/></td></tr>
     30                <tr><td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password')"/>: </td><td><input type="password" name="password"/></td></tr>
    3131                <tr><td><input type="submit" value="Login"/></td><td><xsl:text> </xsl:text></td></tr>
    3232            </table>
    3333        </form>
     34        <script type="text/javascript">
     35            <xsl:text disable-output-escaping="yes">
     36            {
     37                $("#loginTable input[name=\"username\"]").focus();
     38            }
     39            </xsl:text>
     40        </script>
    3441    </xsl:template>
    3542</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.