Skip to content

Commit 18e901d

Browse files
author
Your Name
committed
Angular Forms In Depth
1 parent 5cf5f05 commit 18e901d

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
<h3>Add Course Lessons:</h3>
3+
4+
<div class="add-lessons-form" [formGroup]="form">
5+
6+
<div class="lesson-form-row">
7+
8+
<mat-form-field appearance="fill">
9+
10+
<input matInput placeholder="Lesson title">
11+
12+
</mat-form-field>
13+
14+
<mat-form-field appearance="fill">
15+
16+
<mat-select placeholder="Lesson level">
17+
<mat-option value="beginner">Beginner</mat-option>
18+
<mat-option value="intermediate">Intermediate</mat-option>
19+
<mat-option value="advanced">Advanced</mat-option>
20+
</mat-select>
21+
22+
</mat-form-field>
23+
24+
<mat-icon class="delete-btn">delete_forever</mat-icon>
25+
26+
</div>
27+
28+
<button mat-mini-fab>
29+
<mat-icon class="add-course-btn">add</mat-icon>
30+
</button>
31+
32+
</div>

src/app/create-course/create-course-step-3/create-course-step-3.component.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99

1010
.lesson-form-row {
1111
display: flex;
12+
align-items:center;
1213

1314
mat-form-field {
1415
margin-right: 10px;
1516
}
1617
}
18+
19+
.delete-btn {
20+
cursor:pointer;
21+
22+
}

0 commit comments

Comments
 (0)