<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:strip-space elements="*"/>
<xsl:output method="html" indent="yes" encoding="utf-8"/>
	
<xsl:template match="FORGET-PASSWORD">
	<script type="text/javascript" src="/js/ForgetPassword.js?{$version}.{$build}"/>
	
	<form name="loginForm" method="post" id="fpForm" action="{$baseUrl}/ForgetPassword" onsubmit="javascript:return validateForm();">
		<table width="100%" border="0">
			<tr>
				<td align="center" style="padding-top: 40px" >
					<table cellspacing="0" cellpadding="0" border="0" class="sb-logintable">
							<tr><td class="sb-logintitle" colspan="2"><xsl:value-of select="RESET-PASSWORD"/></td></tr>
							<xsl:if test="../../STATUS">
								<tr>
									<td>
										<xsl:apply-templates select="../../STATUS" mode="admin">
											<xsl:with-param name="controlStyle">padding: 10px 10px 0px 10px;</xsl:with-param>
										</xsl:apply-templates>
									</td>
								</tr>
							</xsl:if>
							<tr>
								<td style="padding: 10px;">
									<table width="100%" border="0" >
										<tr>
											<td colspan="2" class="sb-login-description">
												<xsl:value-of select="DESCRIPTION"/>
											</td>
										</tr> 
										
										<tr>
											<td class="sb-login-control-title"><xsl:value-of select="CONTROL[@NAME='login']/@TITLE"/><span id="login_asterix" class="sb-asterix"> *</span></td>
											<td>
												<xsl:apply-templates select="CONTROL[@NAME='login']" mode="TITLE-NONE">
													<xsl:with-param name="controlClass">sb-login-control</xsl:with-param>
												</xsl:apply-templates>
											</td>
										</tr> 
										
										<tr>
											<td class="sb-login-control-title"><xsl:value-of select="CONTROL[@NAME='email']/@TITLE"/><span id="email_asterix" class="sb-asterix"> *</span></td>
											<td>
												<xsl:apply-templates select="CONTROL[@NAME='email']" mode="TITLE-NONE">
													<xsl:with-param name="controlClass">sb-login-control</xsl:with-param>
												</xsl:apply-templates>
											</td>
										</tr> 
										<tr style="display: none">
											<td></td>
											<td>
												<xsl:apply-templates select="CONTROL[@NAME='ssoUid']" mode="TITLE-NONE">
													<!-- override name to avoid under_to_camel conversion -->
													<xsl:with-param name="name">sso_uid</xsl:with-param>
												</xsl:apply-templates>
											</td>
										</tr>
										
										<tr>
											<td class="sb-login-description">
												<xsl:call-template name="REQUIRED-FIELDS"/>
											</td>
										
											<td nowrap="true" align="right">
												<table width="1%" border="0" cellpadding="0" cellpacing="0"> 
													<tr>
														<td>
															<xsl:call-template name="BUTTON-CONTROL">
																<xsl:with-param name="class">sb-login-control-button</xsl:with-param>
																<xsl:with-param name="title"><xsl:value-of select="/SITEBUILDER-PAGE/LOCALE/SEND"/></xsl:with-param>
																<xsl:with-param name="action">javascript:validateForm();</xsl:with-param>
															</xsl:call-template>
														</td>
														<td>
															<xsl:call-template name="BUTTON-CONTROL">
																<xsl:with-param name="class">sb-login-control-button</xsl:with-param>
																<xsl:with-param name="title"><xsl:value-of select="/SITEBUILDER-PAGE/LOCALE/CANCEL"/></xsl:with-param>
																<xsl:with-param name="action">document.location.href='<xsl:value-of select="$baseUrl" disable-output-escaping="yes"/>/Login';</xsl:with-param>
															</xsl:call-template>
														</td>
													</tr>
												</table>
												
												<!-- input image needed for work default submit via Enter -->
												<input type="image" style="border-width: 0px; height: 0px; width: 0px;"/>
											</td>
										</tr>									
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</xsl:template>

	<xsl:template match="SITEBUILDER-PAGE">
		<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; height: 100%">
			<tr>
				<td class="sb-adminpanel-header">
					<xsl:if test="NAVIGATION">
						<xsl:attribute name="colspan">2</xsl:attribute>
					</xsl:if>
					<table class="sb-adminpanel-header-inner" border="0" width="100%">
						<tr>
							<td valign="middle" style="padding-left:20;">
								<xsl:call-template name="HEADER-LOGO"/>
							</td>
                        	<td align="right" class="sb-header-copyright" style="padding-right: 15px;"><xsl:value-of select="/SITEBUILDER-PAGE/LOCALE/COPYRIGHT"/><br/><xsl:value-of select="/SITEBUILDER-PAGE/LOCALE/ALL-RIGHTS-RESERVED"/></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td valign="top">
					<xsl:apply-templates select="VIEW-CONTENT/*"/>
				</td>
			</tr>
		</table>
	</xsl:template>
	
	<xsl:template name="MAIN-PAGE-CONTENT">
		<tr>
			<td valign="top">
				<xsl:apply-templates select="VIEW-CONTENT"/>
			</td>
		</tr>
	</xsl:template>
</xsl:stylesheet>