Files
agenda-web/src/app/components/contact-form/contact-form.html

29 lines
1015 B
HTML

<form [formGroup]="form">
<legend>{{strings.addContact|upperfirst}}.<span>{{strings.allFieldRequired|upperfirst}}</span></legend>
<div class="fields">
<app-form-field
[errorsDictionary]="companyAndNameErrorsDictionary"
formControlName="name"
[label]="(strings.name|upperfirst) + ':'"
placeholder="Contact's name"
/>
<app-form-field
[errorsDictionary]="companyAndNameErrorsDictionary"
formControlName="company"
[label]="(strings.company|upperfirst) + ':'"
placeholder="Contact's company"
/>
<app-form-field
[errorsDictionary]="phoneErrorsDictionary"
formControlName="phone"
[label]="(strings.phone|upperfirst) +':'"
placeholder="Contact's phone"
type="tel"
/>
</div>
<div class="footer">
<app-squared-btn
[text]="strings.add"
></app-squared-btn>
</div>
</form>