mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import { Component } from '@angular/core';
|
|
import { FormGroup, Validators } from '@angular/forms';
|
|
import { PayerCreateComponent } from './payer-create.component';
|
|
|
|
@Component({
|
|
selector: 'page-payer-create-b2c',
|
|
templateUrl: 'payer-create-b2c.component.html',
|
|
styleUrls: ['payer-create.component.scss'],
|
|
})
|
|
export class PayerCreateB2CComponent extends PayerCreateComponent {
|
|
initForm(): FormGroup {
|
|
const fb = this.fb;
|
|
|
|
return fb.group({
|
|
gender: fb.control(undefined, [Validators.required]),
|
|
title: fb.control(''),
|
|
firstName: fb.control('', [Validators.required]),
|
|
lastName: fb.control('', [Validators.required]),
|
|
organisation: fb.group({
|
|
name: fb.control(''),
|
|
department: fb.control(''),
|
|
vatId: fb.control(''),
|
|
}),
|
|
address: fb.group({
|
|
street: fb.control('', [Validators.required]),
|
|
streetNumber: fb.control('', [Validators.required]),
|
|
zipCode: fb.control('', [Validators.required]),
|
|
city: fb.control('', [Validators.required]),
|
|
info: fb.control(''),
|
|
country: fb.control('DEU', [Validators.required]),
|
|
}),
|
|
isDefault: fb.control(undefined),
|
|
});
|
|
}
|
|
}
|