<!--
	Copyright (C) 2004 Orbeon, Inc.
	
	This program is free software; you can redistribute it and/or modify it under the terms of the
	GNU Lesser General Public License as published by the Free Software Foundation; either version
	2.1 of the License, or (at your option) any later version.
	
	This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
	without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
	See the GNU Lesser General Public License for more details.
	
	The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xforms="http://www.w3.org/2002/xforms"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
	xmlns:f="http://orbeon.org/oxf/xml/formatting" xsl:version="2.0">
	<head>
		<title>Formation Orbeon</title>
	</head>
	<body>

		<div align="center">
			<center>
				<h1>STEP 1 : AUTHENTIFICATION</h1>
			</center>
		</div>
		<br />
		<br />
		<br />
		<center>
			<xforms:group ref="form" xxforms:show-errors="{doc('input:instance')/form/show-errors = 'true'}">
				<table>
					<tr>
						<td  bgcolor='CC99FF' style="ont-weight: bold; text-align: center">Login :</td>
						<td>
							<xforms:input ref="authentification/login">
							  <xforms:alert>Error login </xforms:alert>
							  <xforms:hint>saisir votre login</xforms:hint>
							</xforms:input>
						</td>
					</tr>
					<tr>
						<td bgcolor='CC99FF' style="ont-weight: bold; text-align: center">password :</td>
						<td>
							<xforms:secret ref="authentification/password">
							<xforms:alert>Error password </xforms:alert>
							  <xforms:hint>saisir votre mot de passe</xforms:hint>
							</xforms:secret>
							<div style="display:none">
							<xforms:input ref="authentification/difference">
							 <xforms:alert>Les deux passwords ne sont pas identiques </xforms:alert>
							</xforms:input>
							</div>
						</td>
					</tr>
					<tr>
						<td bgcolor='CC99FF' style="ont-weight: bold; text-align: center">retype password :</td>
						<td>
							<xforms:secret ref="authentification/repassword">
							<xforms:alert>Error repassword </xforms:alert>
							  <xforms:hint>resaisir votre mot de passe</xforms:hint>
							  <xforms:help>resaisir votre mot de passe</xforms:help>
							  
							</xforms:secret>
						</td>
					</tr>
					<tr>
						<td bgcolor='CC99FF' style="ont-weight: bold; text-align: center">Role :</td>
						<td>
							<xforms:select1 ref="authentification/level" appearance='minimal'>
							  <xforms:item>
							    <xforms:label>Administratif</xforms:label>
							    <xforms:value>administratif</xforms:value>
							  </xforms:item>
							  <xforms:item>
							    <xforms:label>Enseignant</xforms:label>
							    <xforms:value>enseignant</xforms:value>
							  </xforms:item>
							  <xforms:item>
							    <xforms:label>Etudiant</xforms:label>
							    <xforms:value>etudiant</xforms:value>
							  </xforms:item>
							</xforms:select1>
						</td>
					</tr>
		           </table>
		       
		           <table>
					<tr>
					  <td align='center'>
					    <xforms:submit>
					      <xforms:label>Etape suivante</xforms:label>
					      <xforms:setvalue ref="action">suivantStep1</xforms:setvalue>
					    </xforms:submit>
					  </td>
					  <td align='right'>
					    <xforms:submit>
					      <xforms:label>Annuler</xforms:label>
					       <xforms:setvalue ref="action">annule</xforms:setvalue>
					    </xforms:submit>
					  </td>
					</tr>
				</table>
				
					
			</xforms:group>
			</center>
			<f:xml-source>
			<xsl:copy-of select="doc('input:instance')/form/authentification/*" />
		</f:xml-source>
	
	</body>
</html>
