Merge "Refactor conformance robot test"
[validation.git] / ui / src / main / webapp / WEB-INF / jsp / login.jsp
1 <%--
2 Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8        http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 --%>
16 <%@ page import="org.onap.portalsdk.core.util.SystemProperties"%>
17 <!DOCTYPE html>
18 <%
19         // Name is defined by app; do not throw if missing
20         final String appDisplayName = SystemProperties.containsProperty(SystemProperties.APP_DISPLAY_NAME)
21                         ? SystemProperties.getProperty(SystemProperties.APP_DISPLAY_NAME)
22                         : SystemProperties.APP_DISPLAY_NAME;
23 %>
24
25 <html>
26
27 <head>
28     <meta charset="utf-8">
29     <meta http-equiv="X-UA-Compatible" content="IE=edge">
30     <meta name="viewport" content="width=device-width, initial-scale=1">
31     <title>Login</title>
32     <style>
33         html {
34             font-family: Verdana, Arial, Helvetica, sans-serif;
35         }
36
37         body {
38             padding-top: 15px;
39         }
40
41         .logo {
42             position: fixed;
43             left: 15px;
44             top: 15px;
45             z-index: -1;
46         }
47
48         .loginError {
49             font-size: 18px;
50             color: red;
51             text-align: center;
52         }
53
54         .login {
55             font-size: 16px;
56             display: block;
57             margin-left: auto;
58             margin-right: auto;
59             text-align: center;
60             width: 100%;
61         }
62
63         .login input[type=submit] {
64             font-size: 16px;
65         }
66
67         .terms {
68             font-size: 10px;
69             text-align: center;
70             margin-left: auto;
71             margin-right: auto;
72         }
73
74         .terms a {
75             font-size: 10px;
76             text-align: center;
77             margin-left: auto;
78             margin-right: auto;
79         }
80     </style>
81 </head>
82
83 <body>
84     <div class="login">
85         <img src="static/fusion/images/logo_akraino_edge_stack.png" alt="Akraino" width="400&quot;" height="114"
86             border="0" />
87         <h2>
88             <%=appDisplayName%>
89         </h2>
90         <br />
91         <form action="do_login_external" method="POST">
92             <label for="loginId">Login ID:</label>
93             <input id="loginId" name="loginId" type="text"
94                 style="width: 140px;height:25px;border-radius:7px;font-size:18px;padding-left:5px;" maxlength="30">
95             <br />
96             <br />
97             <label for="password">Password:</label>
98             <input id="password" name="password" type="password"
99                 style="width: 140px;height:25px;border-radius:7px;font-size:18px;padding-left:5px;" maxlength="30">
100             <br />
101             <br />
102             <input id="loginBtn" type="submit" alt="Login" value="Login">
103         </form>
104     </div>
105     <br />
106     <br />
107     <div class="loginError">${model.error}</div>
108     <br />
109     <br />
110     <br />
111     <br />
112     <br />
113     <br />
114     <div id="footer">
115         <div class="terms">
116             Copyright
117             <script>new Date().getFullYear() > 2017 && document.write(new Date().getFullYear());</script>
118             Akraino Edge Stack and Linux Foundation.
119         </div>
120         <p>
121             <div class="terms">
122
123             </div>
124     </div>
125 </body>
126
127 </html>