diff options
| author | crupest <crupest@outlook.com> | 2019-03-06 21:29:36 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2019-03-06 21:29:36 +0800 |
| commit | 61844a348b2934321567b1457e6d05f318fc8b7e (patch) | |
| tree | afc70011a886cc325e7d742c05aba2a9982bcf5d /Timeline/ClientApp/src/app/user/user-login/user-login.component.html | |
| parent | 1cf7cad30778e12fa0be22bf3b2acf5f75c6246a (diff) | |
| download | timeline-61844a348b2934321567b1457e6d05f318fc8b7e.tar.gz timeline-61844a348b2934321567b1457e6d05f318fc8b7e.tar.bz2 timeline-61844a348b2934321567b1457e6d05f318fc8b7e.zip | |
Reorganize file structure.
Diffstat (limited to 'Timeline/ClientApp/src/app/user/user-login/user-login.component.html')
| -rw-r--r-- | Timeline/ClientApp/src/app/user/user-login/user-login.component.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Timeline/ClientApp/src/app/user/user-login/user-login.component.html b/Timeline/ClientApp/src/app/user/user-login/user-login.component.html new file mode 100644 index 00000000..b1dd289d --- /dev/null +++ b/Timeline/ClientApp/src/app/user/user-login/user-login.component.html @@ -0,0 +1,18 @@ +<form [formGroup]="form"> + <ng-container *ngIf="message" [ngSwitch]="message"> + <p *ngSwitchCase="'nologin'" class="mat-body no-login-message">You haven't login.</p> + <p *ngSwitchCase="'invalidlogin'" class="mat-body invalid-login-message">Your login is no longer valid.</p> + <p *ngSwitchDefault class="mat-body error-message">{{ message }}</p> + </ng-container> + <mat-form-field> + <mat-label>Username</mat-label> + <input formControlName="username" matInput type="text" /> + </mat-form-field> + <div class="w-100"></div> + <mat-form-field> + <mat-label>Password</mat-label> + <input formControlName="password" matInput type="password" /> + </mat-form-field> + <div class="w-100"></div> + <button mat-flat-button class="login-button" (appDebounceClick)="onLoginButtonClick()">Login</button> +</form> |
