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
10 ~ http://www.apache.org/licenses/LICENSE-2.0
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
19 <div class="container-md" >
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"
29 <small id="usernameHelp" class="form-text text-muted" i18n="inputhelp|">Enter your username.</small>
31 <div [hidden]="username.valid || username.pristine"
32 class="alert alert-danger" i18n>
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"
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>
47 <button type="submit" class="btn btn-primary">Submit</button>