-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontact-form.component.html
More file actions
37 lines (36 loc) · 1.72 KB
/
contact-form.component.html
File metadata and controls
37 lines (36 loc) · 1.72 KB
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
<div class="form-group">
<input type="text" class="form-control" id="firstName" required [(ngModel)]="contact.firstName" placeholder="First Name" name="firstName" #firstName="ngModel">
<div [hidden]="firstName.valid || firstName.pristine" class="alet alert-damger">
First name is required!!
</div>
</div>
<div class="form-group">
<input type="text" class="form-control" id="lastName" required [(ngModel)]="contact.lastName" placeholder="last Name" name="lastName" #lastName="ngModel">
<div [hidden]="lastName.valid || lastName.pristine" class="alet alert-damger">
Last name is required!!
</div>
</div>
<div class="form-group">
<select name="" id="gender" class="form-control" name="gender" [(ngModel)]="contact.gender">
<option *ngFor="let gender of genders" [value]="role">{{gender}}</option>
</select>
</div>
<div class="form-group">
<input type="email" class="form-control" id="email" required email [(ngModel)]="contact.email" placeholder="Enter email" name="email" #email="ngModel">
<div [hidden]="email.valid || email.pristine" class="alet alert-damger">
email format is not correct !!
</div>
</div>
<div class="form-group">
<input type="text" class="form-control" id="phone" required [(ngModel)]="contact.phone" placeholder="phone number" name="phone" #phone="ngModel">
<div [hidden]="phone.valid || phone.pristine" class="alet alert-damger">
phone number is required!!
</div>
</div>
<div class="form-group">
<input type="text" class="form-control" id="bio" required [(ngModel)]="contact.bio" placeholder="BIO " name="bio" #phone="ngModel">
</div>
<hr class="bloc separator">
<!-- adress -->
<app-adress [adress]="contact.address"></app-adress>
<!-- adress -->