Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1970a49fefe567e76a9263305316f31d0028fa08 (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!-- **************************************************************************
#
# Copyright  (c) 2004-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: 
#
#    Winston Prakash
#        
#
#************************************************************************** --> 


<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">
    <style type="text/css">
        #loginForm input {
            width: 150px;
        }
    </style>
    <div style="margin: 2em;">
        <!-- login form -->
        <form id="loginForm"  style="text-size:smaller">
            <table >
                <tr>
                    <td>${%User}:</td>
                    <td>
                        <input type="text" name="j_username" id="j_username" />
                    </td>
                </tr>
                <tr>
                    <td >${%Password}:</td>
                    <td>
                        <input  type="password" name="j_password" id="j_password"/>
                    </td>
                </tr>
                <j:if test="${app.security.name()=='SECURED'}">
                    <!-- remember me service only available for Spring Security -->
                    <tr>
                        <td align="right">
                            <input style="width:10px" id="remember_me" type="checkbox" name="remember_me" />
                        </td>
                        <td>
                            <label for="remember_me">${%Remember me on this computer}</label>
                        </td>
                    </tr>
                </j:if>
            </table>
            <input type="hidden" name="from" value="${submitFrom}" />
            <input style="width:75px" type="button" id="loginButton" value="${%Login}" />
            <input style="margin-left:10px; width:75px" type="button" id="cancelButton" value="${%Cancel}" />

        </form>
        <style type="text/css">
            #loginError, #loginMsg {
                opacity:0;
                -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
                filter: alpha(opacity=0);
                text-align:center;
                font-weight:bold;
            }
            #loginError {
                color: red;
            }
            #loginMsg {
                color: black;
            }
        </style>

        <div id="loginError">
            ${%Invalid login information. Please try again.}
        </div>

        <div id="loginMsg">
            ${%Logging in...}
        </div>
        

        <j:forEach var="fls" items="${app.getFederatedLoginServices()}">
            <div>
                <st:include page="loginFragment.jelly" it="${fls}"/>
            </div>
        </j:forEach>

        <j:if test="${app.securityRealm.allowsSignup()}">
            <div style="margin-top:2em">
            ${%signUp(rootURL)}
            </div>
        </j:if>
    </div>
</j:jelly>

Back to the top