[Yanel-commits] rev 23713 -
public/yanel/trunk/src/resources/add-realm/xslt
michi at wyona.com
michi at wyona.com
Fri Apr 13 10:50:56 CEST 2007
Author: michi
Date: 2007-04-13 10:50:54 +0200 (Fri, 13 Apr 2007)
New Revision: 23713
Modified:
public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-scratch.xsl
Log:
required added
Modified: public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-scratch.xsl
===================================================================
--- public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-scratch.xsl 2007-04-13 08:40:54 UTC (rev 23712)
+++ public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-scratch.xsl 2007-04-13 08:50:54 UTC (rev 23713)
@@ -5,6 +5,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:yanel="http://www.wyona.org/yanel/1.0"
+ xmlns:i18n="http://www.wyona.org/yanel/i18n/1.0"
>
<xsl:output method="xhtml" encoding="UTF-8"/>
@@ -41,6 +42,7 @@
<tr><td colspan="2" align="right"><input type="submit" name="submit-from-scratch" value="Add Realm"/></td></tr>
</xsl:otherwise>
</xsl:choose>
+ <tr><td colspan="2" align="right"><br/><i18n:message key="requiredFields"/>fields marked with (*) are required</td></tr>
</table>
</form>
</xsl:otherwise>
@@ -53,17 +55,17 @@
<xsl:apply-templates select="@yanel:exception"/>
<xsl:choose>
<xsl:when test="@yanel:configuration-value">
- <tr><td><xsl:value-of select="@yanel:name"/></td><td><xsl:value-of select="@yanel:configuration-value"/></td></tr>
+ <tr><td><b><xsl:value-of select="@yanel:name"/></b></td><td><xsl:value-of select="@yanel:configuration-value"/></td></tr>
</xsl:when>
<xsl:otherwise>
- <tr><td><xsl:value-of select="@yanel:name"/></td><td><input type="text" name="{@yanel:name}" value="{@yanel:value}"/></td></tr>
+ <tr><td><b><xsl:value-of select="@yanel:name"/></b></td><td><input type="text" name="{@yanel:name}" value="{@yanel:value}"/> <xsl:apply-templates select="@yanel:required"/></td></tr>
<tr><td> </td><td align="right">(i.e. <xsl:value-of select="@yanel:sample-value"/>)</td></tr>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="@yanel:exception">
- <tr><td colspan="2"><font color="red">Exception:</font> <xsl:value-of select="."/></td></tr>
+ <tr><td colspan="2"><font color="red">Exception:</font> <xsl:value-of select="."/></td></tr>
</xsl:template>
<xsl:template match="yanel:not-valid">
@@ -73,5 +75,11 @@
<xsl:template match="yanel:valid">
<p>All input parameters are valid. Do you want to create a new realm from scratch with the parameters below?</p>
</xsl:template>
+
+ <xsl:template match="@yanel:required">
+ <xsl:if test=". = 'true'">
+ *
+ </xsl:if>
+ </xsl:template>
</xsl:stylesheet>
More information about the Yanel-commits
mailing list