UI initial implementation.
[validation.git] / ui / src / main / webapp / views / login.html
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 -->
17
18 <html ng-app="BlueprintValidationUIManagement">
19 <head>
20 <style>
21 .form_bg {
22         background-color: #eee;
23         color: #666;
24         padding: 20px;
25         border-radius: 10px;
26         position: absolute;
27         border: 1px solid #fff;
28         top: 0;
29         right: 0;
30         bottom: 0;
31         left: 0;
32         margin: auto;
33         width: 400px;
34         height: 320px;
35 }
36
37 .form-control {
38         width: 320px;
39 }
40
41 .align-center {
42         text-align: center;
43 }
44 </style>
45 </head>
46 <body ng-controller="Login">
47  <div>
48   <div class="header" style="width: 100%"
49    style="padding-top:10px; padding-bottom:10px">
50    <a href="https://www.akraino.org/"> <img
51     src="./resources/images/logo_akraino_edge_stack.png" alt="Akraino"
52     width="200" height="57" border="0">
53    </a>
54    <div class="header-right">
55     <a class="active" href="#home">Home</a> <a href="#"
56      style="font-color: #FFFFFF">Documentation</a> <a href="#"
57      style="font-color: #FFFFFF"
58      ng-show="$state.current.name == 'undefined' || $state.current.name != 'login'"
59      ng-click="goLogout()">Sign Out</a>
60    </div>
61   </div>
62  </div>
63  <div class="container">
64   <div class="row">
65    <h1 style="color: blue;" class="align-center">Blueprint
66     Validation UI</h1>
67    <h2 class="align-center">Sign In Page</h2>
68    <div class="form_bg" style="margin-top: 230px;">
69     <form>
70      <br />
71      <div class="form-group">
72       <label
73        style="margin-left: auto; margin-right: auto; padding-left: 15px;">{{message}}</label>
74       <input type="text" style="margin-left: auto; margin-right: auto;"
75        class="form-control" id="userid" placeholder="User name"
76        ng-model="usernameVal"> <label
77        style="display: block; text-align: center; color: red;">{{
78        userMessage }}</label>
79      </div>
80      <div class="form-group">
81       <input type="password"
82        style="margin-left: auto; margin-right: auto;"
83        class="form-control" id="pwd" placeholder="Password"
84        ng-model="passwordVal"> <label
85        style="display: block; text-align: center; color: red;">{{
86        passwordMessage }}</label>
87      </div>
88      <br />
89      <div class="align-center">
90       <button type="submit" class="btn btn-default" id="login"
91        ng-click="goLogin()">Login</button>
92      </div>
93     </form>
94    </div>
95   </div>
96  </div>
97 </body>
98 <html>