Added extra fields

This commit is contained in:
piratefinn 2017-07-03 17:20:48 +01:00
parent d5edab6e2e
commit 7c6f09e365
2 changed files with 16 additions and 0 deletions

View file

@ -146,6 +146,13 @@
</div>
<form class="form-horizontal" [formGroup]="singleSupplierForm" (ngSubmit)="onSubmitSingleSupplier()">
<div class="card-block">
<div class="form-group row">
<label class="col-md-3 form-control-label" for="text-input"><strong>Period of entry month</strong></label>
<div class="col-md-9">
<input type="month" class="form-control" formControlName="entryperiod">
<span class="help-block">Must be filled in to submit this data.</span>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label" for="text-input">Supplier Business Name</label>
<div class="col-md-9">
@ -183,6 +190,13 @@
</div>
<form class="form-horizontal" [formGroup]="employeeForm" (ngSubmit)="onSubmitEmployee()">
<div class="card-block">
<div class="form-group row">
<label class="col-md-3 form-control-label" for="text-input"><strong>Period of entry month</strong></label>
<div class="col-md-9">
<input type="month" class="form-control" formControlName="entryperiod">
<span class="help-block">Must be filled in to submit this data.</span>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label" for="text-input">Employee number</label>
<div class="col-md-9">

View file

@ -37,11 +37,13 @@ export class AddDataComponent {
localsuppliersamount: ['', [Validators.required]],
});
this.singleSupplierForm = this.formBuilder.group({
entryperiod: ['', [Validators.required]],
supplierbusinessname: [''],
postcode: [''],
monthlyspend: [''],
});
this.employeeForm = this.formBuilder.group({
entryperiod: ['', [Validators.required]],
employeeno: [''],
employeeincometax: [''],
employeegrosswage: [''],