Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 018dc1463a422c1da830821f26aaa874c6eb3a7d (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
<!-- **************************************************************************
#
# 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
#        
#
#************************************************************************** --> 


<!--
  "New slave" page.

  The flow of this is:

    new.jelly -> ComputerSet.doCreateItem -> _new2.jelly -> ComputerSet.doDoCreateItem
-->
<?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:s="/lib/form">
  
    <j:if test="${app.isTeamManagementEnabled()}">
        <j:getStatic var="permission" className="hudson.model.Computer" field="CREATE"/>
    </j:if>
    <j:if test="${!app.isTeamManagementEnabled()}">
        <j:set var="permission" value="${app.ADMINISTER}" />
    </j:if>
    <l:layout norefresh="true" permission="${permission}">
        <st:include page="sidepanel.jelly" />
        <l:main-panel>
            <h1>
                <img width="48" height="48" src="${imagesURL}/48x48/computer.png" alt="" style="margin: 2px;"/>
                ${%New Node}
            </h1>
            <j:invokeStatic var="slaves" className="hudson.slaves.NodeDescriptor" method="allInstantiable" />
            <n:form nameTitle="${%Node name}" copyTitle="${%Copy Existing Node}" copyNames="${it._slaveNames}"
                descriptors="${slaves}" checkUrl="computer/checkName" xmlns:n="/lib/hudson/newFromList" />
        </l:main-panel>
    </l:layout>
</j:jelly>

Back to the top