| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?xml version="1.0"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:eat="http://msqr.us/xsd/ieat"
- xmlns:xweb="http://msqr.us/xsd/jaxb-web"
- exclude-result-prefixes="eat xweb">
-
- <!-- imports -->
- <xsl:import href="tmpl/default-layout.xsl"/>
- <xsl:import href="tmpl/display-user.xsl"/>
-
- <!-- layout variables -->
- <xsl:variable name="layout.global.nav.page" select="''"/>
-
- <!-- helper vars -->
- <xsl:variable name="user" select="xweb:x-data/xweb:x-model/eat:edit/eat:user"/>
- <xsl:variable name="is-new" select="not(boolean($user/@userId))"/>
-
- <xsl:template match="xweb:x-data" mode="page-title">
- <xsl:choose>
- <xsl:when test="$is-new = 'true'">
- <xsl:value-of select="key('i18n','edit-user.create.validate.title')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('i18n','edit-user.edit.validate.title')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="xweb:x-data" mode="page-intro">
- <div class="intro">
- <xsl:choose>
- <xsl:when test="$is-new = 'true'">
- <xsl:value-of select="key('i18n','edit-user.create.validate.intro')"
- disable-output-escaping="yes"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="key('i18n','edit-user.edit.validate.intro')"
- disable-output-escaping="yes"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </xsl:template>
- <xsl:template match="xweb:x-data" mode="page-body">
- <xsl:apply-templates select="." mode="page-intro"/>
-
- <xsl:apply-templates select="$user" mode="validate"/>
-
- <br />
-
- <form method="post" action="{$web-context}{$ctx/xweb:path}">
- <input type="submit" name="_finish" value="{key('i18n','save.displayName')}"/>
- <xsl:text> </xsl:text>
- <input type="submit" name="_target0" value="{key('i18n','reedit.displayName')}"/>
- </form>
- </xsl:template>
-
- </xsl:stylesheet>
|