Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<div id="page" class="login-page" [style]="'justify-content:center; align-items:center; height:100%'">
<div fxLayout="row" [style]="'justify-content:center; align-items:center; height:100%'">
<mat-card *ngIf="lookups.cachedApplicationInfo.ssoAuthentication" fxFlex="400px" [style]="'width:400px;height:300px;margin:10px'">
<mat-card-title>SSO Login: {{lookups.cachedApplicationInfo.ssoAuthenticationLabel}}</mat-card-title>
<mat-card-content style="align-items: center;justify-content: center;display: flex;height: 200px;">
<a mat-raised-button color="primary" href="/smp/ui/rest/security/cas" [style]="'width=150px'">
<mat-icon>input</mat-icon>
<span> SSO Login</span>
</a>
</mat-card-content>
</mat-card>
<mat-card fxFlex="400px" [style]="'width:400px;height:300px;margin:10px'">
<mat-card-title>SMP Login</mat-card-title>
<mat-card-content style="align-items: center;justify-content: center;display: flex;height: 200px;">
<form name="loginForm" #loginForm="ngForm" (ngSubmit)="login()">
<table cellspacing="0">
<tr>
<td>
<mat-form-field>
<input matInput placeholder="Username" name="username" [(ngModel)]="model.username"
#username="ngModel"
required id="username_id">
</mat-form-field>
</td>
</tr>
<tr>
<td>
<mat-form-field>
<input type="password" matInput placeholder="Password" name="password" [(ngModel)]="model.password"
#password="ngModel" required id="password_id">
</mat-form-field>
</td>
</tr>
<tr>
<td>
<button mat-raised-button color="primary" [disabled]="!loginForm.form.valid" id="loginbutton_id" [style]="'width=150px'">
<mat-icon>input</mat-icon>
<span> Login</span>
</button>
</td>
</tr>
</table>
</form>
</mat-card-content>
</mat-card>