|
1 | 1 |
|
2 | 2 |
|
| 3 | +<div class="edit-course-form"> |
3 | 4 |
|
| 5 | + <h2 mat-dialog-title>{{description}}</h2> |
4 | 6 |
|
| 7 | + <mat-dialog-content [formGroup]="form"> |
5 | 8 |
|
| 9 | + <mat-form-field> |
6 | 10 |
|
7 |
| -<!-- |
| 11 | + <input matInput |
| 12 | + placeholder="Course Description" |
| 13 | + formControlName="description"> |
8 | 14 |
|
9 |
| - <mat-form-field> |
| 15 | + </mat-form-field> |
10 | 16 |
|
11 |
| - <input matInput |
12 |
| - placeholder="Course Description" |
13 |
| - formControlName="description"> |
| 17 | + <mat-form-field> |
14 | 18 |
|
15 |
| - </mat-form-field> |
| 19 | + <mat-select placeholder="Select category" |
| 20 | + formControlName="category"> |
16 | 21 |
|
17 |
| - <mat-form-field> |
| 22 | + <mat-option value="BEGINNER"> |
| 23 | + Beginner</mat-option> |
| 24 | + <mat-option value="INTERMEDIATE"> |
| 25 | + Intermediate</mat-option> |
| 26 | + <mat-option value="ADVANCED"> |
| 27 | + Advanced</mat-option> |
18 | 28 |
|
19 |
| - <mat-select placeholder="Select category" |
20 |
| - formControlName="category"> |
| 29 | + </mat-select> |
21 | 30 |
|
22 |
| - <mat-option value="BEGINNER"> |
23 |
| - Beginner</mat-option> |
24 |
| - <mat-option value="INTERMEDIATE"> |
25 |
| - Intermediate</mat-option> |
26 |
| - <mat-option value="ADVANCED"> |
27 |
| - Advanced</mat-option> |
| 31 | + </mat-form-field> |
28 | 32 |
|
29 |
| - </mat-select> |
| 33 | + <mat-form-field> |
30 | 34 |
|
31 |
| - </mat-form-field> |
| 35 | + <input matInput [matDatepicker]="myDatepicker" |
| 36 | + formControlName="releasedAt"> |
32 | 37 |
|
33 |
| - <mat-form-field> |
| 38 | + <mat-datepicker-toggle matSuffix |
| 39 | + [for]="myDatepicker"> |
34 | 40 |
|
35 |
| - <input matInput [matDatepicker]="myDatepicker" |
36 |
| - formControlName="releasedAt"> |
| 41 | + </mat-datepicker-toggle> |
37 | 42 |
|
38 |
| - <mat-datepicker-toggle matSuffix |
39 |
| - [for]="myDatepicker"> |
| 43 | + <mat-datepicker #myDatepicker></mat-datepicker> |
40 | 44 |
|
41 |
| - </mat-datepicker-toggle> |
| 45 | + </mat-form-field> |
42 | 46 |
|
43 |
| - <mat-datepicker #myDatepicker></mat-datepicker> |
44 |
| -
|
45 |
| - </mat-form-field> |
46 |
| -
|
47 |
| - <mat-form-field> |
| 47 | + <mat-form-field> |
48 | 48 |
|
49 | 49 | <textarea matInput placeholder="Description"
|
50 | 50 | formControlName="longDescription">
|
51 | 51 |
|
52 | 52 | </textarea>
|
53 | 53 |
|
54 |
| - </mat-form-field> |
| 54 | + </mat-form-field> |
| 55 | + |
| 56 | + </mat-dialog-content> |
| 57 | + |
| 58 | + <mat-dialog-actions> |
| 59 | + |
| 60 | + <button mat-raised-button (click)="close()">Close</button> |
| 61 | + |
| 62 | + <button mat-raised-button color="primary" (click)="save()">Save</button> |
| 63 | + |
| 64 | + </mat-dialog-actions> |
| 65 | + |
| 66 | +</div> |
| 67 | + |
55 | 68 |
|
56 | 69 |
|
57 | 70 |
|
58 | 71 |
|
59 |
| - --> |
|
0 commit comments