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 #96 from AppliedIS/feature-valsub
More validation work. Implemented Review and Submit page.
- Loading branch information
Showing
43 changed files
with
284 additions
and
28 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
DOL.WHD.Section14c.Web/src/images/dol-angle-arrow-left-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
DOL.WHD.Section14c.Web/src/images/dol-angle-arrow-left-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
DOL.WHD.Section14c.Web/src/images/dol-angle-arrow-right-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
DOL.WHD.Section14c.Web/src/images/dol-angle-arrow-right-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
....Section14c.Web/src/modules/components/formFooterControls/formFooterControlsTemplate.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="form-footer-controls"> | ||
<div class="form-footer-controls" ng-show="vm.hasNext"> | ||
<button class="back-button" ng-show="vm.hasBack" ng-click="vm.onBackClick()">{{ vm.backLabel }}</button><span class="pull-right"><button class="save-button" ng-click="vm.onSaveClick()">Save & Continue Later</button><button class="next-button" ng-click="vm.onNextClick()">{{ vm.nextLabel }}</button></span> | ||
</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
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
7 changes: 2 additions & 5 deletions
7
...HD.Section14c.Web/src/modules/components/mainHeaderControl/mainHeaderControlController.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
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
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
6 changes: 6 additions & 0 deletions
6
DOL.WHD.Section14c.Web/src/modules/components/sectionReview/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,6 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
require('./sectionReviewController')(ngModule); | ||
require('./sectionReviewDirective')(ngModule); | ||
}; |
19 changes: 19 additions & 0 deletions
19
DOL.WHD.Section14c.Web/src/modules/components/sectionReview/sectionReviewController.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,19 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.controller('sectionReviewController', function($scope, apiService, stateService, navService, validationService) { | ||
'ngInject'; | ||
'use strict'; | ||
|
||
stateService.inReview = true; | ||
$scope.isValid = validationService.validateForm(); | ||
$scope.validation = $scope.isValid ? {} : validationService.getValidationErrors(); | ||
$scope.navService = navService; | ||
|
||
let vm = this; | ||
|
||
this.onSubmit = function() { | ||
//TODO: submit the application | ||
} | ||
}); | ||
} |
28 changes: 28 additions & 0 deletions
28
DOL.WHD.Section14c.Web/src/modules/components/sectionReview/sectionReviewDirective.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,28 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.directive('sectionReview', function() { | ||
|
||
'use strict'; | ||
|
||
return { | ||
restrict: 'EA', | ||
template: require('./sectionReviewTemplate.html'), | ||
controller: 'sectionReviewController', | ||
scope: { }, | ||
controllerAs: 'vm' | ||
}; | ||
}); | ||
|
||
ngModule.directive('reviewbar', function() { | ||
'use strict' | ||
|
||
return { | ||
template: '<div class="reviewbar {{ errorstate ? \'error\' : \'\'}}"><div class="reviewbar-container"><div class="reviewbar-bar"></div><div class="reviewbar-circle"></div></div></div>', | ||
replace: true, | ||
scope: { | ||
errorstate: '@' | ||
} | ||
} | ||
}); | ||
} |
69 changes: 69 additions & 0 deletions
69
DOL.WHD.Section14c.Web/src/modules/components/sectionReview/sectionReviewTemplate.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,69 @@ | ||
<div class="form-page-full"> | ||
<h2>Review & Submit</h2> | ||
<p>We've checked your responses from each section to make sure there were no errors or missing information before submission.</p> | ||
<p>Below is a summary of the results:</p> | ||
|
||
<div class="section-results"> | ||
<h3>Application Info</h3> | ||
<reviewbar errorstate="{{ validation.__appinfo }}"></reviewbar> | ||
<div ng-hide="validation.__appinfo"> | ||
<a href="" ng-click="navService.gotoSection('app-info')">Review Application Info</a> | ||
</div> | ||
<button ng-click="navService.gotoSection('app-info')" ng-show="validation.__appinfo">Edit Responses</button> | ||
</div> | ||
|
||
<hr> | ||
|
||
<div class="section-results"> | ||
<h3>Employer</h3> | ||
<reviewbar errorstate="{{ validation.__employer }}"></reviewbar> | ||
<div ng-hide="validation.__employer"> | ||
<a href="" ng-click="navService.gotoSection('employer')">Review Application Info</a> | ||
</div> | ||
<button ng-click="navService.gotoSection('employer')" ng-show="validation.__employer">Edit Responses</button> | ||
</div> | ||
|
||
<hr> | ||
|
||
<div class="section-results"> | ||
<h3>Wage Data</h3> | ||
<reviewbar errorstate="{{ validation.__wagedata }}"></reviewbar> | ||
<div ng-hide="validation.__wagedata"> | ||
<a href="" ng-click="navService.gotoSection('wage-data')">Review Application Info</a> | ||
</div> | ||
<button ng-click="navService.gotoSection('wage-data')" ng-show="validation.__wagedata">Edit Responses</button> | ||
</div> | ||
|
||
<hr> | ||
|
||
<div class="section-results"> | ||
<h3>Work Sites & Employees</h3> | ||
<reviewbar errorstate="{{ validation.__worksites }}"></reviewbar> | ||
<div ng-hide="validation.__worksites"> | ||
<a href="" ng-click="navService.gotoSection('work-sites')">Review Application Info</a> | ||
</div> | ||
<button ng-click="navService.gotoSection('work-sites')" ng-show="validation.__worksites">Edit Responses</button> | ||
</div> | ||
|
||
<hr> | ||
|
||
<div class="section-results"> | ||
<h3>WIOA</h3> | ||
<reviewbar errorstate="{{ validation.__wioa }}"></reviewbar> | ||
<div ng-hide="validation.__wioa"> | ||
<a href="" ng-click="navService.gotoSection('wioa')">Review Application Info</a> | ||
</div> | ||
<button ng-click="navService.gotoSection('wioa')" ng-show="validation.__wioa">Edit Responses</button> | ||
</div> | ||
|
||
<div class="clearer submit-button"> | ||
<button class="pull-right" ng-class="$scope.isValid ? '' : 'disabled'" ng-click="vm.onSubmit()" ng-disabled="!$scope.isValid">Submit 14(c) Certificate Application</button> | ||
</div> | ||
|
||
<div> | ||
<h3>Public Burden Statement</h3> | ||
<hr> | ||
<p>According to the Paperwork Reduction Act of 1995, no persons are required to respond to a collection of information unless such collection displays a valid OMB control number. The Department of Labor estimates that the public reporting burden for this collection of information will average 50 minutes per response for the initial applicant and 75 minutes per response for the renewal applicant, including time for reviewing instructions, searching existing data sources, gathering and maintaining the data needed, and completing and reviewing the collection of information. The obligation to respond to this collection is mandatory in order to obtain the authority to pay less than the applicable minimum wage. 29 C.F.R. §§ 525.7-9, 12-13. Send comments regarding the burden estimate or any other aspect of this collection of information, including suggestions for reducing this burden, to the Administrator, Wage and Hour Division, U.S. Department of Labor, Room S-3502, 200 Constitution Avenue, N.W., Washington, DC 20210 and reference the OMB Control Number.</p> | ||
</div> | ||
|
||
</div> |
2 changes: 1 addition & 1 deletion
2
DOL.WHD.Section14c.Web/src/modules/components/sectionWioa/sectionWioaTemplate.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
10 changes: 10 additions & 0 deletions
10
DOL.WHD.Section14c.Web/src/modules/pages/appReviewPageController.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,10 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.controller('appReviewPageController', function($scope, apiService, stateService, validationService) { | ||
'ngInject'; | ||
'use strict'; | ||
|
||
$scope.validation = validationService.validateForm() ? undefined : validationService.getValidationErrors(); | ||
}); | ||
} |
Empty file.
11 changes: 11 additions & 0 deletions
11
DOL.WHD.Section14c.Web/src/modules/services/assetService.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,11 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.service('assetService', function() { | ||
'use strict'; | ||
|
||
this.loadImage = function(image) { | ||
return require('../../images/' + image); | ||
} | ||
}); | ||
} |
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
Oops, something went wrong.