Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 11b7f0f4e7258241264aa77ee8c09fb5b8ebeb14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!-- **************************************************************************
#
# 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
#        
#
#************************************************************************** --> 

<?jelly escape-by-default='true'?>
<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.png"
                                                                                       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>
            <j:out value="${description}"/>
        </f:description>
    </j:if>
    <j:if test="${attrs.help!=null}">
        <f:helpArea/>
    </j:if>
</j:jelly>

Back to the top