Portal Spring Boot Development
[portal.git] / portal-BE / src / main / resources / templates / login.html
1 <!--
2
3  ============LICENSE_START==========================================
4  ONAP Portal
5  ===================================================================
6  Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
7  ===================================================================
8  Modifications Copyright (c) 2019 Samsung
9  ===================================================================
10  Unless otherwise specified, all software contained herein is licensed
11  under the Apache License, Version 2.0 (the "License");
12  you may not use this software except in compliance with the License.
13  You may obtain a copy of the License at
14
15              http://www.apache.org/licenses/LICENSE-2.0
16
17  Unless required by applicable law or agreed to in writing, software
18  distributed under the License is distributed on an "AS IS" BASIS,
19  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  See the License for the specific language governing permissions and
21  limitations under the License.
22
23  Unless otherwise specified, all documentation contained herein is licensed
24  under the Creative Commons License, Attribution 4.0 Intl. (the "License");
25  you may not use this documentation except in compliance with the License.
26  You may obtain a copy of the License at
27
28             https://creativecommons.org/licenses/by/4.0/
29
30  Unless required by applicable law or agreed to in writing, documentation
31  distributed under the License is distributed on an "AS IS" BASIS,
32  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33  See the License for the specific language governing permissions and
34  limitations under the License.
35
36  ============LICENSE_END============================================
37
38 -->
39
40 <html lang="en" xmlns:th="http://www.thymeleaf.org">
41
42 <head>
43       <meta charset="utf-8"/>
44       <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
45       <meta name="viewport" content="width=device-width, initial-scale=1">
46       <title>Please Login</title>
47       <style>
48                         .terms {
49                                 font-family: Verdana,Arial,Helvetica, sans-serif;
50                                 font-size: 9px;
51                         }
52                         .login-txt {
53                             font-family: Arial;
54                             font-size: 14px;
55                             text-decoration: none;
56                         }
57                         .login-input-text {
58                                 width: 140px;
59                                 height:25px;
60                                 border-radius:7px;
61                                 padding-left:5px;
62                             font-family: Arial;
63                                 font-size: 14px;
64                         }
65       </style>
66 </head>
67 <body style="padding-top: 15px;">
68 <div th:fragment="content">
69       <form name="f" th:action="@{/login}" method="post">
70             <div align="center" style="margin-left:auto;margin-right:auto;width:40%;padding:6px;background-color:white">
71                   <img src="/img/onap-portal-logo.png" height="250"/>
72                   <fieldset>
73                         <legend>Please Login</legend>
74                         <div th:if="${param.error}" class="alert alert-error">
75                               <span style="color:red">Invalid username or password. Please try again.</span>.
76                         </div>
77                         <div th:if="${param.logout}" class="alert alert-success">
78                               <span style="color:green">You have been logged out.</span>
79                         </div>
80                         <label class="login-txt" for="username">Login ID:</label>
81                         <input class="login-input-text" type="text" id="username" name="username" maxlength="30"/>
82                         <label class="login-txt" for="password">Password:</label>
83                         <input class="login-input-text" type="password" id="password" name="password" maxlength="30"/>
84                         <div class="form-actions">
85                               <button type="submit" class="btn">Log in</button>
86                         </div>
87                   </fieldset>
88             </div>
89       </form>
90 </div>
91 </body>
92 </html>