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

30 lines
1010 B
HTML

<form [formGroup]="form()" (ngSubmit)="handleSubmit(form().value)">
<ng-content select="[slot='header']"></ng-content>
<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]="submitText()"
></app-squared-btn>
</div>
</form>