UI adaptation for supporting ONAP portal SDK
[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         <head>
27                 <meta charset="utf-8">
28                 <meta http-equiv="X-UA-Compatible" content="IE=edge">
29                 <meta name="viewport" content="width=device-width, initial-scale=1">
30                 <title>Login</title>
31                 <style>
32                 html {
33                         font-family: Verdana, Arial, Helvetica, sans-serif;
34                 }
35                 body {
36                         padding-top: 15px;
37                 }
38                 .logo {
39                         position: fixed;
40                         left: 15px;
41                         top: 15px;
42                         z-index: -1;
43                 }
44                 .loginError {
45                         font-size: 18px;
46                         color: red;
47                         text-align: center;
48                 }
49                 .login {
50                         font-size: 16px;
51                         display: block;
52                         margin-left: auto;
53                         margin-right: auto;
54                         text-align: center;
55                         width: 100%;
56                 }
57                 .login input[type=submit] {
58                         font-size: 16px;
59                 }
60                 .terms {
61                         font-size: 10px;
62                         text-align: center;
63                         margin-left: auto;
64                         margin-right: auto;
65                 }
66                 .terms a {
67                         font-size: 10px;
68                         text-align: center;
69                         margin-left: auto;
70                         margin-right: auto;
71                 }
72                 </style>
73         </head>
74         <body>
75                 <div class="login">
76                         <img src="static/fusion/images/logo_akraino_edge_stack.png" alt="Akraino" width="400&quot;" height="114" border="0" />
77                         <h2>
78                                 <%=appDisplayName%>
79                         </h2>
80                         <br />
81                         <form action="do_login_external" method="POST">
82                                 <label for="loginId">Login ID:</label>
83                                 <input id="loginId" name="loginId" type="text" style="width: 140px;height:25px;border-radius:7px;font-size:18px;padding-left:5px;" maxlength="30">
84                                 <br/>
85                                 <br/>
86                                 <label for="password">Password:</label>
87                                 <input id="password" name="password" type="password" style="width: 140px;height:25px;border-radius:7px;font-size:18px;padding-left:5px;"
88                                                         maxlength="30" >
89                                 <br />
90                                 <br />
91                                 <input id="loginBtn" type="submit" alt="Login" value="Login">
92                         </form>
93                 </div>
94                 <br />
95                 <br />
96                 <div class="loginError">${model.error}</div>
97                 <br />
98                 <br />
99                 <br />
100                 <br />
101                 <br />
102                 <br />
103                 <div id="footer">
104                         <div class="terms">
105                         Copyright <script>new Date().getFullYear()>2017&&document.write(new Date().getFullYear());</script>
106                                 Akraino Edge Stack and Linux Foundation.
107                         </div>
108                         <p>
109                         <div class="terms">
110
111                         </div>
112                 </div>
113         </body>
114 </html>