Skip to content

Commit e9a98a9

Browse files
update Angular forms
1 parent 8fea377 commit e9a98a9

File tree

8 files changed

+26
-34
lines changed

8 files changed

+26
-34
lines changed

packages/devextreme-schematics/src/add-layout/files/src/app/layouts/single-card/single-card.component.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232

3333
.description {
3434
color: var(--base-text-color-alpha-7);
35-
line-height: 18px;
35+
line-height: 16px;
36+
font-size: 12px;
37+
margin-top: 32px;
38+
text-align: center;
3639
}
3740
}
3841
}

packages/devextreme-schematics/src/add-layout/files/src/app/shared/components/create-account-form/create-account-form.component.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,20 @@
3434
</dxo-button-options>
3535
</dxi-item>
3636

37-
<dxi-item>
38-
<div class="login-link">
39-
Have an account? <a routerLink="/login">Sign In</a>
40-
</div>
41-
</dxi-item>
42-
4337
<ng-container *dxTemplate="let item of 'createAccountTemplate'">
4438
<div>
4539
<span class="dx-button-text">
4640
<ng-container *ngIf="loading; else notLoading">
4741
<dx-load-indicator width="24px" height="24px" [visible]="true"></dx-load-indicator>
4842
</ng-container>
49-
43+
5044
<ng-template #notLoading>Create a new account</ng-template>
5145
</span>
5246
</div>
5347
</ng-container>
5448

5549
</dx-form>
50+
<div class="login-link">
51+
Have an account? <a routerLink="/login">Sign In</a>
52+
</div>
5653
</form>
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
.create-account-form {
22
.policy-info {
3-
margin: 10px 0;
43
color: var(--base-text-color-alpha-7);
5-
font-size: 14px;
4+
font-size: 12px;
65
font-style: normal;
76

87
a {
@@ -12,7 +11,9 @@
1211

1312
.login-link {
1413
color: var(--base-accent);
15-
font-size: 16px;
14+
font-size: 12px;
1615
text-align: center;
16+
padding: 6px 0 32px 0;
17+
border-bottom: 1px solid var(--border-color);
1718
}
1819
}

packages/devextreme-schematics/src/add-layout/files/src/app/shared/components/login-form/login-form.component.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@
2424
</dxo-button-options>
2525
</dxi-item>
2626

27-
<dxi-item>
28-
<div class="link">
29-
<a routerLink="/reset-password">Forgot password?</a>
30-
</div>
31-
</dxi-item>
32-
33-
<dxi-item itemType="button">
34-
<dxo-button-options text="Create an account" width="100%" [onClick]="onCreateAccountClick"></dxo-button-options>
35-
</dxi-item>
36-
3727
<ng-container *dxTemplate="let item of 'signInTemplate'">
3828
<div>
3929
<span class="dx-button-text">
@@ -46,4 +36,8 @@
4636
</ng-container>
4737

4838
</dx-form>
39+
<div class="link">
40+
<a routerLink="/reset-password">Forgot password?</a>
41+
</div>
42+
<dx-button text="Create an account" width="100%" (click)="onCreateAccountClick()"></dx-button>
4943
</form>
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
.login-form {
22
.link {
33
text-align: center;
4-
font-size: 16px;
4+
font-size: 12px;
55
font-style: normal;
6-
7-
a {
8-
text-decoration: none;
9-
}
6+
margin: 6px 0 50px;
107
}
118

129
::ng-deep .form-text {
13-
margin: 10px 0;
1410
color: var(--base-text-color-alpha-7);
1511
}
1612
}

packages/devextreme-schematics/src/add-layout/files/src/app/shared/components/login-form/login-form.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { CommonModule } from '@angular/common';
22
import { Component, NgModule } from '@angular/core';
33
import { Router, RouterModule } from '@angular/router';
44
import { DxFormModule } from 'devextreme-angular/ui/form';
5+
import { DxButtonModule } from 'devextreme-angular/ui/button';
56
import { DxLoadIndicatorModule } from 'devextreme-angular/ui/load-indicator';
67
import notify from 'devextreme/ui/notify';
78
import { AuthService } from '../../services';
@@ -40,6 +41,7 @@ export class LoginFormComponent {
4041
CommonModule,
4142
RouterModule,
4243
DxFormModule,
44+
DxButtonModule,
4345
DxLoadIndicatorModule
4446
],
4547
declarations: [ LoginFormComponent ],

packages/devextreme-schematics/src/add-layout/files/src/app/shared/components/reset-password-form/reset-password-form.component.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
[elementAttr]="{ class: 'submit-button' }">
1414
</dxo-button-options>
1515
</dxi-item>
16-
<dxi-item>
17-
<div class="login-link">
18-
Return to <a routerLink="/login">Sign In</a>
19-
</div>
20-
</dxi-item>
2116

2217
<ng-container *dxTemplate="let item of 'resetPasswordTemplate'">
2318
<div>
@@ -31,4 +26,7 @@
3126
</ng-container>
3227

3328
</dx-form>
29+
<div class="login-link">
30+
Return to <a routerLink="/login">Sign In</a>
31+
</div>
3432
</form>
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
.reset-password-form {
22
::ng-deep .submit-button {
3-
margin-top: 10px;
3+
margin-top: 18px;
44
}
55

66
.login-link {
77
color: var(--base-accent);
8-
font-size: 16px;
8+
font-size: 12px;
99
text-align: center;
10+
margin-top: 6px;
1011
}
1112
}

0 commit comments

Comments
 (0)