-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathcreate-song.component.html
37 lines (36 loc) · 1.44 KB
/
create-song.component.html
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
<ion-header>
<ion-toolbar>
<ion-title>Create Song</ion-title>
<ion-buttons slot="end">
<ion-button (click)="back()">
<ion-icon name="chevron-forward" color="primary"></ion-icon>
</ion-button>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content>
<form class="cont" [formGroup]="form">
<div class="desc">
Enter the name, artist, and album for the song you would like to add.
</div>
<im-item [touched]="true">
<ion-icon slot="start" name="name"></ion-icon>
<input formControlName="name" type="name" placeholder="Song Name" />
<im-error *ngIf="!form.controls.name.valid && form.controls.name.touched"></im-error>
Please enter the song name.
</im-item>
<im-item [touched]="true">
<ion-icon slot="start" name="artist"></ion-icon>
<input formControlName="artist" type="artist" placeholder="Song Artist" />
<im-error *ngIf="!form.controls.artist.valid && form.controls.artist.touched"></im-error>
Please enter the song artist.
</im-item>
<im-item [touched]="true">
<ion-icon slot="start" name="album"></ion-icon>
<input formControlName="album" type="album" placeholder="Song album" />
<im-error *ngIf="!form.controls.album.valid && form.controls.album.touched"></im-error>
Please enter the song album.
</im-item>
<ion-button [disabled]="!form.valid" (click)="submit()">Submit</ion-button>
</form>
</ion-content>