This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
forked from 18F/dol-whd-14c
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from AppliedIS/feature-adminwagedata
admin view for wage data section
- Loading branch information
Showing
15 changed files
with
250 additions
and
57 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
DOL.WHD.Section14c.Web/src/modules/components/answerField/answerFieldController.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.controller('answerFieldController', function(apiService, stateService) { | ||
'ngInject'; | ||
'use strict'; | ||
|
||
var vm = this; | ||
vm.attachmentApiURL = apiService.attachmentApiURL + stateService.ein; | ||
vm.access_token = stateService.access_token; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
DOL.WHD.Section14c.Web/src/modules/components/answerField/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
require('./answerFieldController')(ngModule); | ||
require('./answerFieldDirective')(ngModule); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...14c.Web/src/modules/components/sectionAdminAssurances/sectionAdminAssurancesTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ction14c.Web/src/modules/components/sectionAdminWageData/adminWageDataPayTypeDirective.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.directive('adminWageDataPayType', function() { | ||
|
||
'use strict'; | ||
|
||
return { | ||
restrict: 'EA', | ||
template: require('./adminWageDataPayTypeTemplate.html'), | ||
scope: { | ||
paytype: '=', | ||
data: '=' | ||
} | ||
}; | ||
}); | ||
} |
97 changes: 97 additions & 0 deletions
97
...tion14c.Web/src/modules/components/sectionAdminWageData/adminWageDataPayTypeTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<answer-field answer="data.numWorkers"> | ||
How many workers did the employer pay {{ paytype === $parent.$parent.$parent.constants.responses.payType.hourly ? 'hourly' : 'on a piece rate basis'}}? | ||
</answer-field> | ||
|
||
<answer-field answer="data.jobName"> | ||
What was the job or contract on which the employer employed the largest number of workers at hourly subminimum wage rates | ||
during the most recently completed fiscal quarter? | ||
</answer-field> | ||
|
||
<answer-field answer="data.jobDescription"> | ||
Description of Work Performed | ||
</answer-field> | ||
|
||
<answer-field answer="data.prevailingWageMethod.display"> | ||
Which method did the employer use to determine the Prevailing Wage for the job or contract identified above? | ||
</answer-field> | ||
|
||
<answer-field answer="data.mostRecentPrevailingWageSurvey.prevailingWageDetermined" ng-show="data.prevailingWageMethodId === $parent.constants.responses.prevailingWageMethod.survey"> | ||
Prevailing Wage Determined based on this survey | ||
</answer-field> | ||
|
||
<h3 ng-show="data.mostRecentPrevailingWageSurvey.sourceEmployers.length">Source Employers</h3> | ||
|
||
<div ng-repeat="employer in data.mostRecentPrevailingWageSurvey.sourceEmployers" ng-show="data.mostRecentPrevailingWageSurvey.sourceEmployers.length"> | ||
<answer-field answer="employer.employerName"> | ||
Source Employer Name | ||
</answer-field> | ||
<answer-field answer="employer.address" address-field="true"> | ||
Address | ||
</answer-field> | ||
<answer-field answer="employer.phone"> | ||
Telephone Number | ||
</answer-field> | ||
<answer-field answer="employer.contactName"> | ||
Full Name of Individual Contacted | ||
</answer-field> | ||
<answer-field answer="employer.contactTitle"> | ||
Title of Individual Contacted | ||
</answer-field> | ||
<answer-field answer="employer.contactDate" datefield="true"> | ||
Date of Contact | ||
</answer-field> | ||
<answer-field answer="employer.jobDescription"> | ||
Brief Description of Job/Task | ||
</answer-field> | ||
<answer-field answer="employer.experiencedWorkerWageProvided"> | ||
Experience Worker Wage Provided | ||
</answer-field> | ||
<answer-field answer="employer.conclusionWageRateNotBasedOnEntry"> | ||
Basis for Conclusion Wage Rate is Not Based on Entry | ||
</answer-field> | ||
<hr> | ||
</div> | ||
|
||
<answer-field answer="data.alternateWageData.alternateWorkDescription" ng-show="data.prevailingWageMethodId === $parent.constants.responses.prevailingWageMethod.alternate"> | ||
Description of Work (include job classification code, if known) | ||
</answer-field> | ||
|
||
<answer-field answer="data.alternateWageData.alternateDataSourceUsed" ng-show="data.prevailingWageMethodId === $parent.constants.responses.prevailingWageMethod.alternate"> | ||
Alternate data source used | ||
</answer-field> | ||
|
||
<answer-field answer="data.alternateWageData.prevailingWageProvidedBySource" ng-show="data.prevailingWageMethodId === $parent.constants.responses.prevailingWageMethod.alternate"> | ||
Prevailing wage provided by source | ||
</answer-field> | ||
|
||
<answer-field answer="data.alternateWageData.dataRetrieved" datefield="true" ng-show="data.prevailingWageMethodId === $parent.constants.responses.prevailingWageMethod.alternate"> | ||
Date data retrieved | ||
</answer-field> | ||
|
||
<answer-field answer="data.scaWageDeterminationAttachment" attachment-field="true" ng-show="data.prevailingWageMethodId === $parent.constants.responses.prevailingWageMethod.sca"> | ||
Attach the applicable SCA Wage Determination | ||
</answer-field> | ||
|
||
<answer-field answer="data.attachment" attachment-field="true" ng-show="paytype == $parent.constants.responses.payType.hourly"> | ||
Attach a work measurement or time study for ONE currently employed worker with a disability who is paid an hourly subminimum wage for the contract identified above. | ||
</answer-field> | ||
|
||
<answer-field answer="data.pieceRateWorkDescription" ng-show="paytype == $parent.constants.responses.payType.pieceRate"> | ||
Descripton of Work | ||
</answer-field> | ||
|
||
<answer-field answer="data.prevailingWageDeterminedForJob" ng-show="paytype == $parent.constants.responses.payType.pieceRate"> | ||
Prevailing Wage Determined for This Job | ||
</answer-field> | ||
|
||
<answer-field answer="data.standardProductivity" ng-show="paytype == $parent.constants.responses.payType.pieceRate"> | ||
Standard Productivity | ||
</answer-field> | ||
|
||
<answer-field answer="data.pieceRatePaidToWorkers" ng-show="paytype == $parent.constants.responses.payType.pieceRate"> | ||
Piece Rate Paid to Workers | ||
</answer-field> | ||
|
||
<answer-field answer="data.attachment" attachment-field="true" ng-show="paytype == $parent.constants.responses.payType.pieceRate"> | ||
Attach all documents of the methods used to determine the standard productivity and the piece rate. | ||
</answer-field> |
7 changes: 7 additions & 0 deletions
7
DOL.WHD.Section14c.Web/src/modules/components/sectionAdminWageData/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
require('./adminWageDataPayTypeDirective')(ngModule); | ||
require('./sectionAdminWageDataController')(ngModule); | ||
require('./sectionAdminWageDataDirective')(ngModule); | ||
}; |
21 changes: 21 additions & 0 deletions
21
...tion14c.Web/src/modules/components/sectionAdminWageData/sectionAdminWageDataController.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.controller('sectionAdminWageDataController', function($scope, $location, _constants) { | ||
$scope.constants = _constants; | ||
|
||
let query = $location.search(); | ||
|
||
var vm = this; | ||
vm.activeTab = query.t ? query.t : 1; | ||
|
||
vm.onTabClick = function(id) { | ||
vm.activeTab = id; | ||
} | ||
|
||
$scope.$on('$routeUpdate', function(){ | ||
query = $location.search(); | ||
vm.activeTab = query.t ? query.t : 1; | ||
}); | ||
}); | ||
}; |
15 changes: 15 additions & 0 deletions
15
...ction14c.Web/src/modules/components/sectionAdminWageData/sectionAdminWageDataDirective.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.directive('sectionAdminWageData', function() { | ||
|
||
'use strict'; | ||
|
||
return { | ||
restrict: 'EA', | ||
template: require('./sectionAdminWageDataTemplate.html'), | ||
controller: 'sectionAdminWageDataController', | ||
controllerAs: 'vm' | ||
}; | ||
}); | ||
} |
16 changes: 16 additions & 0 deletions
16
...tion14c.Web/src/modules/components/sectionAdminWageData/sectionAdminWageDataTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="admin-page"> | ||
<h1>Wage Data</h1> | ||
<hr> | ||
|
||
<answer-field answer="appData.payType.display"> | ||
Pay Type | ||
</answer-field> | ||
|
||
<div class="form-tabbed-section" ng-show="appData.payTypeId === constants.responses.payType.both"> | ||
<div class="form-tab {{ vm.activeTab === 1 ? 'active' : '' }}" ng-click="vm.onTabClick(1)"><div class="circle">1</div> Hourly</div> | ||
<div class="form-tab {{ vm.activeTab === 2 ? 'active' : '' }}" ng-click="vm.onTabClick(2)"><div class="circle">2</div> Piece Rate</div> | ||
</div> | ||
|
||
<admin-wage-data-pay-type paytype="constants.responses.payType.hourly" data="appData.hourlyWageInfo" ng-show="appData.payTypeId === constants.responses.payType.hourly || (appData.payTypeId === constants.responses.payType.both && vm.activeTab !== 2)"></admin-wage-data-pay-type> | ||
<admin-wage-data-pay-type paytype="constants.responses.payType.pieceRate" data="appData.pieceRateWageInfo" ng-show="appData.payTypeId === constants.responses.payType.pieceRate || (appData.payTypeId === constants.responses.payType.both && vm.activeTab === 2)"></admin-wage-data-pay-type> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters