Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinston Prakash2011-09-16 00:33:31 +0000
committerWinston Prakash2011-09-16 00:33:31 +0000
commitc74a6240b309125e185126ec4214a748b73eb1a9 (patch)
tree931dd006e49f6cb506257e0e0cbc0eb399153526 /hudson-core/src/main/resources/lib/form/dropdownList.jelly
downloadorg.eclipse.hudson.core-c74a6240b309125e185126ec4214a748b73eb1a9.tar.gz
org.eclipse.hudson.core-c74a6240b309125e185126ec4214a748b73eb1a9.tar.xz
org.eclipse.hudson.core-c74a6240b309125e185126ec4214a748b73eb1a9.zip
Initial commit of hudson-core files which are approved via CQ 5461
Diffstat (limited to 'hudson-core/src/main/resources/lib/form/dropdownList.jelly')
-rw-r--r--hudson-core/src/main/resources/lib/form/dropdownList.jelly73
1 files changed, 73 insertions, 0 deletions
diff --git a/hudson-core/src/main/resources/lib/form/dropdownList.jelly b/hudson-core/src/main/resources/lib/form/dropdownList.jelly
new file mode 100644
index 00000000..ce6e7fb3
--- /dev/null
+++ b/hudson-core/src/main/resources/lib/form/dropdownList.jelly
@@ -0,0 +1,73 @@
+<!-- **************************************************************************
+#
+# Copyright (c) 2004-2009 Oracle Corporation.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+#
+# Kohsuke Kawaguchi, Stephen Connolly
+#
+#
+#************************************************************************** -->
+
+<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout"
+ xmlns:t="/lib/hudson" xmlns:f="/lib/form">
+ <st:documentation>
+ Foldable block expanded when the corresponding item is selected in the drop-down list.
+
+ <st:attribute name="title">
+ Human readable title text of this drop-down listbox.
+ Shown in the same position as &lt;f:entry title="..." />
+ </st:attribute>
+ <st:attribute name="name" use="required">
+ name of the drop-down list.
+ </st:attribute>
+ <st:attribute name="help">
+ Path to the inline help. See &lt;f:entry help="..." />
+ </st:attribute>
+ </st:documentation>
+
+ <tr>
+ <td class="setting-leftspace"><st:nbsp/></td>
+ <td class="setting-name">
+ ${attrs.title}
+ </td>
+ <td class="setting-main">
+ <!-- create drop-down list -->
+ <select class="setting-input dropdownList" onchange="updateDropDownList(this)">
+ <j:set var="dropdownListMode" value="createSelectField"/>
+ <d:invokeBody/>
+ </select>
+ </td>
+ <j:if test="${attrs.help!=null}">
+ <td class="setting-help">
+ <a href="#" class="help-button" helpURL="${rootURL}${attrs.help}"><img src="${imagesURL}/16x16/help.gif"
+ alt="Help for feature: ${title}"/></a>
+ </td>
+ </j:if>
+ </tr>
+
+ <!-- generate the actual form entries -->
+ <tr class="dropdownList-container">
+ <td colspan="2"/>
+ <td colspan="2">
+ <table width="100%" name="${name}">
+ <j:set var="dropdownListMode" value="generateEntries"/>
+ <d:invokeBody/>
+ </table>
+ </td>
+ </tr>
+
+ <j:if test="${!empty(attrs.description)}">
+ <f:description>
+ ${description}
+ </f:description>
+ </j:if>
+ <j:if test="${attrs.help!=null}">
+ <f:helpArea/>
+ </j:if>
+</j:jelly>

Back to the top