forgot-password.xsl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  3. xmlns:eat="http://msqr.us/xsd/ieat"
  4. xmlns:xweb="http://msqr.us/xsd/jaxb-web"
  5. exclude-result-prefixes="eat xweb">
  6. <!-- imports -->
  7. <xsl:import href="tmpl/default-layout.xsl"/>
  8. <!-- layout variables -->
  9. <xsl:variable name="layout.global.nav.page" select="'forgot-password'"/>
  10. <xsl:template match="xweb:x-data" mode="page-title">
  11. <xsl:value-of select="key('i18n','forgot-password.title')"/>
  12. </xsl:template>
  13. <xsl:template match="xweb:x-data" mode="page-body">
  14. <div class="intro">
  15. <xsl:value-of select="key('i18n','forgot-password.intro')"/>
  16. </div>
  17. <form method="post" action="{$web-context}{$ctx/xweb:path}">
  18. <table class="form">
  19. <tr>
  20. <th>
  21. <xsl:value-of select="key('i18n','login.displayName')"/>
  22. </th>
  23. <td colspan="3">
  24. <input type="text" name="login" maxlength="64"/>
  25. </td>
  26. </tr>
  27. <tr>
  28. <th/>
  29. <td>
  30. <input type="submit" value="{key('i18n','submit.displayName')}"/>
  31. </td>
  32. </tr>
  33. </table>
  34. <input type="hidden" name="password" value="forgot"/>
  35. </form>
  36. <script type="text/javascript" xml:space="preserve">
  37. <xsl:comment>
  38. document.forms[0].elements['login'].focus();
  39. //</xsl:comment>
  40. </script>
  41. </xsl:template>
  42. </xsl:stylesheet>