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


<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">
  <l:layout permission="${app.ADMINISTER}" title="${%Install as Windows Service}">
    <st:include it="${app}" page="sidepanel.jelly" />
    <l:main-panel>
      <j:choose>
        <j:when test="${!it.installed}">
          <h1>
            <img src="${imagesURL}/48x48/installer.gif" alt=""/>
            ${%Install as Windows Service}
          </h1>

          <p>${%installBlurb}</p>

          <form action="doInstall" method="post">
            <table>
              <f:entry title="${%Installation Directory}">
                <f:textbox name="dir" value="${app.rootDir}" /><!-- checkUrl="'/install/checkDir?value='+encodeURIComponent(this.value)" -->
              </f:entry>
              <f:block>
                <f:submit value="${%Install}" />
              </f:block>
            </table>
          </form>
        </j:when>

        <!-- already installed -->
        <j:otherwise>
          <h1>
            <img src="${imagesURL}/48x48/blue.gif" alt=""/>
            ${%Installation Complete}
          </h1>

          <p>${%restartBlurb}</p>

          <form action="restart" method="post">
            <f:submit value="${%Yes}" />
          </form>
        </j:otherwise>
      </j:choose>
    </l:main-panel>
  </l:layout>
</j:jelly>

Back to the top