diff --git a/DOL.WHD.Section14c.Web/src/modules/components/sectionWorkSites/sectionWorkSitesController.js b/DOL.WHD.Section14c.Web/src/modules/components/sectionWorkSites/sectionWorkSitesController.js index ff1b5fff..e4ae968b 100644 --- a/DOL.WHD.Section14c.Web/src/modules/components/sectionWorkSites/sectionWorkSitesController.js +++ b/DOL.WHD.Section14c.Web/src/modules/components/sectionWorkSites/sectionWorkSitesController.js @@ -157,6 +157,12 @@ module.exports = function(ngModule) { return undefined; } + this.workerProductivityChanged = function(study) { + if (!study && vm.activeWorker) { + vm.activeWorker.productivityMeasure = undefined; + } + } + // convenience methods to avoid lenghty template statements this.validateActiveWorksiteProperty = function(prop) { diff --git a/DOL.WHD.Section14c.Web/src/modules/components/sectionWorkSites/sectionWorkSitesTemplate.html b/DOL.WHD.Section14c.Web/src/modules/components/sectionWorkSites/sectionWorkSitesTemplate.html index 6a7e3d16..b270fdc6 100644 --- a/DOL.WHD.Section14c.Web/src/modules/components/sectionWorkSites/sectionWorkSitesTemplate.html +++ b/DOL.WHD.Section14c.Web/src/modules/components/sectionWorkSites/sectionWorkSitesTemplate.html @@ -312,7 +312,19 @@

Number of Employees: {{ vm.activeWorksite.numEmployees ? vm.activeWo
{{ vm.validateActiveWorkerProperty('productivityMeasure') }} - + +
    +
  • + + +
  • +
  • + + +
  • +
+ +
diff --git a/DOL.WHD.Section14c.Web/src/modules/services/validationService.js b/DOL.WHD.Section14c.Web/src/modules/services/validationService.js index 1927f159..88aa5d12 100644 --- a/DOL.WHD.Section14c.Web/src/modules/services/validationService.js +++ b/DOL.WHD.Section14c.Web/src/modules/services/validationService.js @@ -293,7 +293,7 @@ module.exports = function(ngModule) { } this.checkRequiredMultipleChoice("employer.pca", "Please indicate if the employer manufactures items under the PCA"); - + let sca = this.checkRequiredMultipleChoice("employer.scaId", "Please indicate if the employer holds any SCA-covered contracts"); if (sca === _constants.responses.sca.yes) { let scaCount = this.checkRequiredNumber("employer.scaCount", "Please provide the total number of workers employed under SCA-covered contracts", 0); @@ -461,7 +461,11 @@ module.exports = function(ngModule) { this.checkRequiredNumber(subprefix + ".avgWeeklyHours", "Please provide the average number of hours per week the employee worked on all jobs", 0); this.checkRequiredNumber(subprefix + ".avgHourlyEarnings", "Please provide the average earings per hour for this employee", 0); this.checkRequiredNumber(subprefix + ".prevailingWage", "Please provide the prevailing wage rate for the job identified", 0); - this.checkRequiredNumber(subprefix + ".productivityMeasure", "Please provide the productivity measure for the job identified", 0); + + if (this.getFormValue(subprefix + ".hasProductivityMeasure")) { + this.checkRequiredNumber(subprefix + ".productivityMeasure", "Please provide the productivity measure for the job identified", 0); + } + this.checkRequiredNumber(subprefix + ".commensurateWageRate", "Please provide the commensurage wage rate for the job identified", 0); this.checkRequiredNumber(subprefix + ".totalHours", "Please provide the employee's total hours worked on the job identified", 0); this.checkRequiredMultipleChoice(subprefix + ".workAtOtherSite", "Please indicate if the employee also performed work at another site included with this application"); diff --git a/DOL.WHD.Section14c.Web/src/modules/services/validationService.test.js b/DOL.WHD.Section14c.Web/src/modules/services/validationService.test.js index 29e67d76..c1c13582 100644 --- a/DOL.WHD.Section14c.Web/src/modules/services/validationService.test.js +++ b/DOL.WHD.Section14c.Web/src/modules/services/validationService.test.js @@ -54,6 +54,7 @@ describe('validationService', function() { "avgWeeklyHours": 40, "avgHourlyEarnings": 5, "prevailingWage": 5, + "hasProductivityMeasure": true, "productivityMeasure": 50, "commensurateWageRate": 102.1, "totalHours": 40, @@ -85,6 +86,7 @@ describe('validationService', function() { "avgWeeklyHours": 40, "avgHourlyEarnings": 5, "prevailingWage": 5, + "hasProductivityMeasure": true, "productivityMeasure": 50, "commensurateWageRate": 102.1, "totalHours": 40, diff --git a/DOL.WHD.Section14c.Web/src/styles/forms.scss b/DOL.WHD.Section14c.Web/src/styles/forms.scss index d9a11faf..bb52f5bb 100644 --- a/DOL.WHD.Section14c.Web/src/styles/forms.scss +++ b/DOL.WHD.Section14c.Web/src/styles/forms.scss @@ -65,12 +65,12 @@ } } -// Form input sizing +// Form input sizing input.phoneno { max-width: 18.2rem; } -input.ein, +input.ein, input.certificateno { max-width: 15.4rem; } @@ -297,7 +297,7 @@ span.example { max-width: 10rem; } - // Styling for upload button/input combos + // Styling for upload button/input combos .upload-label { margin-right: 0px; border-top-right-radius: 0px; @@ -366,6 +366,10 @@ span.example { font-weight: 400; } } + + .wage-data-table li > input[type="radio"] { + width: auto; + } } table { @@ -482,7 +486,7 @@ span.example { } } -// Custom form tabs (as seen in Wage Data section) +// Custom form tabs (as seen in Wage Data section) .form-tabbed-section { @include clearfix; @@ -497,7 +501,7 @@ span.example { font-weight: 700; cursor: pointer; margin-right: 0px; - + &:not(:first-of-type) { border-left: 1px solid #aeb0b5; @@ -619,7 +623,7 @@ span.example { @media (min-width: 37.5em) { .form-tabbed-section { .form-tab { - font-size: 2.4rem; + font-size: 2.4rem; .circle { font-size: 1.7rem; @@ -682,4 +686,4 @@ span.example { display: block; } } -} \ No newline at end of file +}