<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0">
  
  <xsl:import href='../general/pages.xsl'/>

  <xsl:import href='../general/forms.xsl'/>
  


  <!--  LOGIN FORM  -->


  <xsl:template name='login-form' xml:space='preserve'>
    <xsl:param name='login'/>

    <form xsl:use-attribute-sets='form'>
      <p>
      <xsl:call-template name='fieldset' xml:space='default'>
        <xsl:with-param name='content' xmlns='http://x' xml:space='preserve'>

     <label>email address:<br />
     <input name='login' size='50'/></label><br />

     <label>password:<br />
     <input name='pass' type='password' /></label><br />

     <input type='checkbox' name='auto-login' id='auto-login' />
     <label for='auto-login'>save login and password in a cookie</label>
    </xsl:with-param>
  </xsl:call-template> <!-- /fieldset -->

  <br />
  <!--   <span id='auto_login_help'> </span> -->
  <input type='submit' value='log in' />
  </p>
   

  <p><a href='{$base-url}/forgotten-password'>Forgot your password?</a> &#160;|&#160; <!-- &#8212; -->
  <a href='{$base-url}/new-user'>Register as a new user.</a></p>


</form>



</xsl:template>
  




  <xsl:template match='/data'>

    <xsl:call-template name='page'>
      <xsl:with-param name='title'>Login required</xsl:with-param>
      <xsl:with-param name='content'>
        <h1>Log in</h1>

        <xsl:call-template name='show-status'/>

        <xsl:call-template name='login-form'>
          <!--          <xsl:with-param name='login' select='$response-data/login/text()'/> -->
        </xsl:call-template>
      </xsl:with-param>
    </xsl:call-template>
  </xsl:template>


</xsl:stylesheet>