root/main/trunk/greenstone3/web/interfaces/oran/transform/pages/login.xsl @ 25316

Revision 25316, 1.4 KB (checked in by sjm84, 8 years ago)

Tidied up the login page

  • Property svn:executable set to *
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4    xmlns:java="http://xml.apache.org/xslt/java"
5    xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6    xmlns:gslib="http://www.greenstone.org/skinning"
7    extension-element-prefixes="java util"
8    exclude-result-prefixes="java util">
9 
10    <!-- use the 'main' layout -->
11    <xsl:include href="layouts/main.xsl"/>
12
13    <!-- set page title -->
14    <xsl:template name="pageTitle"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_b')"/></xsl:template>
15
16    <!-- set page breadcrumbs -->
17    <xsl:template name="breadcrumbs"><gslib:siteLink/></xsl:template>
18
19    <!-- the page content -->
20    <xsl:template match="/page">
21        <div id="gs_error" class="ui-state-error ui-corner-all">
22            <span class="ui-icon ui-icon-alert" style="float: left;"><xsl:text> </xsl:text></span><xsl:value-of select="/page/pageRequest/paramList/param[@name = 'loginMessage']/@value"/>
23        </div>
24        <br/>
25        <form method="post" action="{/page/pageRequest/paramList/param[@name = 'redirectURL']/@value}">
26            <table id="loginTable">
27                <tr><td>Username: </td><td><input type="text" name="username"/></td></tr>
28                <tr><td>Password: </td><td><input type="password" name="password"/></td></tr>
29                <tr><td><input type="submit" value="Login"/></td><td><xsl:text> </xsl:text></td></tr>
30            </table>
31        </form>
32    </xsl:template>
33</xsl:stylesheet>
Note: See TracBrowser for help on using the browser.