Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
In directory james.mmbase.org:/tmp/cvs-serv19197/xsl
Modified Files:
wizard.xsl
Log Message:
CMSC-811
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
See also: http://www.mmbase.org/jira/browse/CMSC-811
Index: wizard.xsl
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/wizard.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- wizard.xsl 22 Dec 2007 15:49:38 -0000 1.8
+++ wizard.xsl 15 Apr 2008 09:10:07 -0000 1.9
@@ -48,7 +48,7 @@
<xsl:variable name="htmlareadir"><xsl:value-of select="$ew_context"
/>/mmbase/edit/wizard/xinha/</xsl:variable>
- <xsl:variable name="BodyOnLoad">doOnLoad_ew(); start_validator();
xinha_init(); initPopCalendar();</xsl:variable>
+ <xsl:variable
name="BodyOnLoad">doOnLoad_ew();start_validator();xinha_init();initPopCalendar();inits();</xsl:variable>
<xsl:template name="javascript-html">
<script type="text/javascript">
@@ -760,5 +760,26 @@
</xsl:template>
<!-- END OVERRIDE PROMPTS.XSL -->
+ <xsl:template name="ftype-unknown">
+ <xsl:choose>
+ <xsl:when test="@ftype='calendar'">
+ <xsl:call-template name="ftype-calendar"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="ftype-other"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+ <xsl:template name="ftype-calendar">
+ <nobr><select name="calendar-type" id="calendar-type">
+ <option value="1">Once</option>
+ <option value="2">Daily</option>
+ <option value="3">Weekly</option>
+ <option value="4">Monthly</option>
+ </select>  
+ <input type="hidden" name="[EMAIL PROTECTED]" value="{value}"
title="new-calendar" id="[EMAIL PROTECTED]"/>
+ <a href="#" onclick="javascript:window.open ('[EMAIL
PROTECTED]&type='+document.getElementById('calendar-type').value,
'calendar', 'height=400, width=500, top='+eval((window.screen.availHeight -
400)/2)+', left='+eval((window.screen.availWidth - 500)/2)+',toolbar=no,
menubar=no, scrollbars=no, location=no, status=no')">select</a> <a href="#"
onclick="javascript:document.getElementById('calendar-expression').innerHTML='';document.getElementById('[EMAIL
PROTECTED]').value=''">delete</a></nobr>
+ <div id="calendar-expression"></div>
+ </xsl:template>
</xsl:stylesheet>
\ No newline at end of file
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs