[Yanel-commits] rev 23675 -
public/yanel/trunk/src/resources/add-realm/xslt
michi at wyona.com
michi at wyona.com
Wed Apr 11 23:07:43 CEST 2007
Author: michi
Date: 2007-04-11 23:07:42 +0200 (Wed, 11 Apr 2007)
New Revision: 23675
Modified:
public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-scratch.xsl
Log:
valid 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-11 21:03:07 UTC (rev 23674)
+++ public/yanel/trunk/src/resources/add-realm/xslt/add-realm-from-scratch.xsl 2007-04-11 21:07:42 UTC (rev 23675)
@@ -19,10 +19,23 @@
<body>
<h1>Add Realm From Scratch</h1>
<a href="?yanel.resource.viewid=xml">Show XML</a>
+
+ <xsl:apply-templates select="/yanel:add-realm/yanel:from-scratch/yanel:not-valid"/>
+ <xsl:apply-templates select="/yanel:add-realm/yanel:from-scratch/yanel:valid"/>
<form>
+ <xsl:if test="/yanel:add-realm/yanel:from-scratch/yanel:valid">
+ <input type="hidden" name="confirm" value="true"/>
+ </xsl:if>
<table>
<xsl:apply-templates select="/yanel:add-realm/yanel:from-scratch/yanel:parameter"/>
- <tr><td colspan="2" align="right"><input type="submit" name="submit-from-scratch" value="Add Realm"/></td></tr>
+ <xsl:choose>
+ <xsl:when test="/yanel:add-realm/yanel:from-scratch/yanel:valid">
+ <tr><td colspan="2" align="right"><input type="submit" name="submit-from-scratch" value="Yes, Add Realm"/></td></tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr><td colspan="2" align="right"><input type="submit" name="submit-from-scratch" value="Add Realm"/></td></tr>
+ </xsl:otherwise>
+ </xsl:choose>
</table>
</form>
</body>
@@ -45,5 +58,13 @@
<xsl:template match="@yanel:exception">
<tr><td colspan="2"><font color="red">Exception:</font> <xsl:value-of select="."/></td></tr>
</xsl:template>
+
+ <xsl:template match="yanel:not-valid">
+ <p>Something is wrong with one or more input parameters. Please see below for more details.</p>
+ </xsl:template>
+
+ <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:stylesheet>
More information about the Yanel-commits
mailing list