Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
In directory
james.mmbase.org:/tmp/cvs-serv9561/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
Modified Files:
wizard.xsl
Log Message:
CMSC-1147 - Specify content type let you choose from all builders
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-1147
Index: wizard.xsl
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/wizard.xsl,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- wizard.xsl 18 Mar 2009 03:21:04 -0000 1.25
+++ wizard.xsl 20 Apr 2009 06:56:38 -0000 1.26
@@ -474,6 +474,51 @@
</tr>
</table>
</xsl:for-each>
+ <xsl:for-each select="comma...@name='mysearch']">
+ <script type="text/javascript">
+ function searchtypedef(){
+
window.open('../../../../editors/typedef/TypedefAction.do?cmd=<xsl:value-of
select="../comma...@name='add-item']/@cmd"
/>&objectnumber=<xsl:value-of select="../@number" />&searchvalue=' +
form["searchvalue"].value, 'pageselector',
'width=401,height=401,status=yes,toolbar=no,titlebar=no,scrollbars=no,resizable=yes,menubar=no');
+ }
+ </script>
+ <table class="searchcontent">
+ <tr>
+ <xsl:if test="prompt">
+ <td class="searchprompt"><xsl:call-template name="prompt"/></td>
+ </xsl:if>
+ <td>
+ <xsl:call-template name="listsearch-age"/>
+ </td>
+ <td>
+ <xsl:call-template name="listsearch-fields"/>
+ </td>
+ <td>
+ <input type="text"
name="searchterm_{../comma...@name='add-item']/@cmd}"
value="{search-filter[1]/default}" class="search" onChange="var s =
form['searchfields_{../comma...@name='add-item']/@cmd}'];
s[s.selectedIndex].setAttribute('default', this.value);
form['searchvalue'].value = this.value; " />
+ <!-- on change the current value is copied back to the option's
default, because of that, the user's search is stored between different types
of search-actions -->
+ <input type="hidden" name="searchvalue" />
+ </td>
+ <td>
+ <a href="#" title="{$tooltip_search}" class="button">
+ <xsl:for-each select="@*">
+ <xsl:copy/>
+ </xsl:for-each>
+ <xsl:attribute name="relationOriginNode"><xsl:value-of
select="../@number" /></xsl:attribute>
+ <xsl:attribute
name="onclick">javascript:searchtypedef();</xsl:attribute>
+ <xsl:choose>
+ <xsl:when
test="../acti...@type='add']/relation/@role">
+ <xsl:attribute name="relationRole"><xsl:value-of
select="../acti...@type='add']/relation/@role" /></xsl:attribute>
+ <xsl:attribute name="relationCreateDir"><xsl:value-of
select="../acti...@type='add']/relation/@createdir" /></xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="relationRole"><xsl:value-of
select="../acti...@type='create']/relation/@role" /></xsl:attribute>
+ <xsl:attribute name="relationCreateDir"><xsl:value-of
select="../acti...@type='create']/relation/@createdir"
/></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="prompt_search"/>
+ </a>
+ </td>
+ </tr>
+ </table>
+ </xsl:for-each>
<xsl:for-each select="comma...@name='assetsselector']">
<table class="searchcontent">
<tr>
@@ -680,6 +725,10 @@
<!-- Search is handled by the listsearch template -->
</xsl:template>
+ <xsl:template match="comma...@name='mysearch']"
mode="listnewbuttons">
+ <!-- Search is handled by the listsearch template -->
+ </xsl:template>
+
<xsl:template match="comma...@name='assetsselector']"
mode="listnewbuttons">
<!-- Search is handled by the listsearch template -->
</xsl:template>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs