mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-17 04:00:45 +01:00
c9170e138e
Example is the tpl etemplates.xslt_widget.test with the xslt-file etemplate/templates/default/test.xsl
26 lines
819 B
XML
26 lines
819 B
XML
<!-- $Id$ -->
|
|
|
|
<xsl:template match="PHPGW">
|
|
<xsl:value-of select="label"/>
|
|
<input>
|
|
<xsl:attribute name="name"><xsl:value-of select="name"/></xsl:attribute>
|
|
<xsl:attribute name="value"><xsl:value-of select="value"/></xsl:attribute>
|
|
<xsl:choose>
|
|
<xsl:when test="readonly!=0">
|
|
<xsl:attribute name="READONLY"/>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
<xsl:choose>
|
|
<xsl:when test="statustext!=''">
|
|
<xsl:attribute name="onFocus">self.status='<xsl:value-of select="statustext"/>'; return true;</xsl:attribute>
|
|
<xsl:attribute name="onBlur">self.status=''; return true;</xsl:attribute>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
<xsl:choose>
|
|
<xsl:when test="attr/class!=''">
|
|
<xsl:attribute name="class"><xsl:value-of select="attr/class"/></xsl:attribute>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
</input>
|
|
</xsl:template>
|