]> source.dussan.org Git - archiva.git/blob
bfab352d9de957ec150b099ea6bba99fccdc4d9e
[archiva.git] /
1 <!--
2   ~ Licensed to the Apache Software Foundation (ASF) under one
3   ~ or more contributor license agreements.  See the NOTICE file
4   ~ distributed with this work for additional information
5   ~ regarding copyright ownership.  The ASF licenses this file
6   ~ to you under the Apache License, Version 2.0 (the
7   ~ "License"); you may not use this file except in compliance
8   ~ with the License.  You may obtain a copy of the License at
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing,
13   ~ software distributed under the License is distributed on an
14   ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   ~ KIND, either express or implied.  See the License for the
16   ~ specific language governing permissions and limitations
17   ~ under the License.
18 -->
19 <div class="container-md" >
20 <div class="row">
21     <div class="col-6">
22         <form (ngSubmit)="onSubmit()" #loginForm="ngForm">
23             <div class="form-group">
24                 <label for="username" i18n="loginform|">Username</label>
25                 <input type="text" class="form-control" id="username" aria-describedby="usernameHelp"
26                        required name="username"
27                        [(ngModel)]="model.username" #username="ngModel"
28                 >
29                 <small id="usernameHelp" class="form-text text-muted" i18n="inputhelp|">Enter your username.</small>
30
31                 <div [hidden]="username.valid || username.pristine"
32                      class="alert alert-danger" i18n>
33                     Username is required
34                 </div>
35             </div>
36             <div class="form-group">
37                 <label for="password" i18n="loginform|">Password</label>
38                 <input type="password" class="form-control" id="password" name="password"
39                     required="required"  [(ngModel)]="model.password" #password="ngModel"
40                 >
41                 <small id="passwordHelp" class="form-text text-muted" i18n="inputhelp|">Enter your password.</small>
42                 <div [hidden]="password.valid || password.pristine"
43                      class="alert alert-danger" i18n>
44                     Password is required
45                 </div>
46             </div>
47             <button type="submit" class="btn btn-primary">Submit</button>
48         </form>
49     </div>
50 </div>
51 </div>