aboutsummaryrefslogtreecommitdiffstats
blob: 219dca6e3487229fd7be7adadb1cac8202317fc1 (plain)
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
<!-- **************************************************************************
#
# Copyright  (c) 2009-2010 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: 
#
#   .
#        
#
#************************************************************************** --> 

<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">
  <f:section title="${descriptor.displayName}">
    <f:entry title="${%title(descriptor.displayName)}" description="${%description(descriptor.displayName)}">
      <f:repeatable name="tool" var="instance" items="${descriptor.installations}"
                    add="${%label.add(descriptor.displayName)}" header="${descriptor.displayName}">
        <j:set var="toolDescriptor" value="${descriptor}" /><!-- to make this descriptor accessible from properties -->
        <table width="100%">
          <st:include page="config.jelly" from="${descriptor}" class="${descriptor.clazz}"/>
            <!-- TODO enable JDK installer when it will be ready -->
            <j:choose>
                <j:when test="${descriptor.displayName=='JDK'}">
                    <tr>
                        <td colspan="2"/>
                        <td><div style="text-align:left; color:red; font-weight:bold">${%jdk.installed.disabled}</div></td>
                    </tr>
                </j:when>
                <j:otherwise>
                    <f:descriptorList descriptors="${descriptor.propertyDescriptors}" field="properties"/>
                </j:otherwise>
            </j:choose>
            <f:entry title="">
            <div align="right">
              <f:repeatableDeleteButton value="${%label.delete(descriptor.displayName)}"/>
            </div>
          </f:entry>
        </table>
      </f:repeatable>
    </f:entry>
  </f:section>
</j:jelly>