WIP
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<img [src]="previewUrl" alt="Preview" />
|
||||
</div>
|
||||
</div> -->
|
||||
<app-image-input></app-image-input>
|
||||
<!-- <app-image-input></app-image-input> -->
|
||||
|
||||
<mat-form-field appearance="outline" class="full-width">
|
||||
<mat-label>Full Name</mat-label>
|
||||
@@ -37,13 +37,13 @@
|
||||
|
||||
<mat-form-field appearance="outline" class="full-width">
|
||||
<mat-label>Phone Number</mat-label>
|
||||
<input matInput formControlName="phone" placeholder="+972-XXXXXXX"/>
|
||||
@if (form.get('phone')?.hasError('required')) {
|
||||
<input matInput formControlName="phoneNumber" placeholder="+972-XXXXXXX"/>
|
||||
@if (form.get('phoneNumber')?.hasError('required')) {
|
||||
<mat-error>
|
||||
Phone number is required
|
||||
</mat-error>
|
||||
}
|
||||
@if (form.get('phone')?.hasError('pattern')){
|
||||
@if (form.get('phoneNumber')?.hasError('pattern')){
|
||||
<mat-error>
|
||||
Invalid phone number
|
||||
</mat-error>
|
||||
@@ -62,8 +62,8 @@
|
||||
|
||||
<mat-form-field appearance="outline" class="full-width">
|
||||
<mat-label>City / Region</mat-label>
|
||||
<input matInput formControlName="city" />
|
||||
@if (form.get('city')?.hasError('required')) {
|
||||
<input matInput formControlName="cityOrRegion" />
|
||||
@if (form.get('cityOrRegion')?.hasError('required')) {
|
||||
<mat-error>
|
||||
Field is required
|
||||
</mat-error>
|
||||
@@ -82,13 +82,13 @@
|
||||
|
||||
<mat-form-field appearance="outline" class="full-width">
|
||||
<mat-label>Why I am the perfect candidate</mat-label>
|
||||
<textarea matInput rows="4" formControlName="reason"></textarea>
|
||||
@if (form.get('reason')?.hasError('required')) {
|
||||
<textarea matInput rows="4" formControlName="justification"></textarea>
|
||||
@if (form.get('justification')?.hasError('required')) {
|
||||
<mat-error>
|
||||
Field is required
|
||||
</mat-error>
|
||||
}
|
||||
@if (form.get('reason')?.hasError('maxLength')) {
|
||||
@if (form.get('justification')?.hasError('maxLength')) {
|
||||
<mat-error>
|
||||
Maximum length is 300 characters
|
||||
</mat-error>
|
||||
|
||||
Reference in New Issue
Block a user