From 2c23b8a64d35ef742a40efd79f2e838f4e77ae87 Mon Sep 17 00:00:00 2001 From: piratefinn Date: Fri, 8 Sep 2017 12:16:43 +0100 Subject: [PATCH] added required to data submissions --- src/app/dashboard/add-data.component.html | 36 +++++++++++------------ src/app/dashboard/add-data.component.ts | 28 +++++++++--------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/app/dashboard/add-data.component.html b/src/app/dashboard/add-data.component.html index 4b81270..889607d 100644 --- a/src/app/dashboard/add-data.component.html +++ b/src/app/dashboard/add-data.component.html @@ -87,14 +87,14 @@
- +
Enter the amount of employees the organisation has for the entry month.
- +
Enter the amount of employees that live locally to the organisation for the entry month. @@ -111,7 +111,7 @@
- +
@@ -121,7 +121,7 @@
- +
@@ -131,7 +131,7 @@
- +
@@ -141,7 +141,7 @@
- +
@@ -151,7 +151,7 @@
- +
@@ -181,7 +181,7 @@
Individual Supplier Data - Optional but recommended. + Required Data marked in bold.
@@ -193,21 +193,21 @@
- +
Enter the business name of the supplier.
- +
Enter the postcode where the supplier is located.
- +
@@ -237,7 +237,7 @@
Individual Employee Data - Optional but recommended. + Required Data marked in bold.
@@ -249,14 +249,14 @@
- +
Used to identify employee anonymously
- +
@@ -266,7 +266,7 @@
- +
@@ -276,7 +276,7 @@
- +
@@ -286,7 +286,7 @@
- +
@@ -296,7 +296,7 @@
- +
diff --git a/src/app/dashboard/add-data.component.ts b/src/app/dashboard/add-data.component.ts index a7a7037..ca54861 100644 --- a/src/app/dashboard/add-data.component.ts +++ b/src/app/dashboard/add-data.component.ts @@ -50,26 +50,26 @@ export class AddDataComponent { employeeamount: ['', [Validators.required]], localemployeeamount: ['', [Validators.required]], grosspayroll: ['', [Validators.required]], - payrollincometax: [''], - payrollemployeeni: [''], - payrollemployerni: [''], - payrolltotalpension: [''], - payrollotherbenefit: [''], + payrollincometax: ['', [Validators.required]], + payrollemployeeni: ['', [Validators.required]], + payrollemployerni: ['', [Validators.required]], + payrolltotalpension: ['', [Validators.required]], + payrollotherbenefit: ['', [Validators.required]], }); this.singleSupplierForm = this.formBuilder.group({ entryperiod: ['', [Validators.required]], - supplierbusinessname: [''], - postcode: [''], - monthlyspend: [''], + supplierbusinessname: ['', [Validators.required]], + postcode: ['', [Validators.required]], + monthlyspend: ['', [Validators.required]], }); this.employeeForm = this.formBuilder.group({ entryperiod: ['', [Validators.required]], - employeeno: [''], - employeeincometax: [''], - employeegrosswage: [''], - employeeni: [''], - employeepension: [''], - employeeotherbenefit: [''], + employeeno: ['', [Validators.required]], + employeeincometax: ['', [Validators.required]], + employeegrosswage: ['', [Validators.required]], + employeeni: ['', [Validators.required]], + employeepension: ['', [Validators.required]], + employeeotherbenefit: ['', [Validators.required]], }); this.myDate = moment().format('YYYY-MM-DD[T]HH:mm'); // this.myDate = new Date().toISOString().slice(0, 16);