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 #149 from AppliedIS/feature-adminview
Feature adminview
- Loading branch information
Showing
51 changed files
with
818 additions
and
167 deletions.
There are no files selected for viewing
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
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
14 changes: 14 additions & 0 deletions
14
DOL.WHD.Section14c.Web/src/modules/components/adminReview/adminReviewController.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,14 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.controller('adminReviewController', function($scope, stateService) { | ||
'ngInject'; | ||
'use strict'; | ||
|
||
$scope.appData = stateService.appData; | ||
|
||
if ($scope.appid && $scope.appid !== $scope.appData.id) { | ||
stateService.loadApplicationData() | ||
} | ||
}); | ||
} |
23 changes: 23 additions & 0 deletions
23
DOL.WHD.Section14c.Web/src/modules/components/adminReview/adminReviewDirective.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,23 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.directive('adminReview', function() { | ||
|
||
'use strict'; | ||
|
||
return { | ||
restrict: 'E', | ||
template: require('./adminReviewTemplate.html'), | ||
controller: 'adminReviewController', | ||
scope: { | ||
appid: '@' | ||
}, | ||
transclude: true, | ||
link: function(scope, element, attrs, ctrlr, transclude) { | ||
transclude(scope, function(clone, scope){ | ||
angular.element(element[0].querySelector('.admin-content')).append(clone); | ||
}); | ||
} | ||
}; | ||
}); | ||
} |
3 changes: 3 additions & 0 deletions
3
DOL.WHD.Section14c.Web/src/modules/components/adminReview/adminReviewTemplate.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,3 @@ | ||
<main-header-control admin="true"></main-header-control> | ||
<div class="main-content admin-content"> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
DOL.WHD.Section14c.Web/src/modules/components/adminReview/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('./adminReviewController')(ngModule); | ||
require('./adminReviewDirective')(ngModule); | ||
}; |
18 changes: 18 additions & 0 deletions
18
DOL.WHD.Section14c.Web/src/modules/components/answerField/answerFieldDirective.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,18 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.directive('answerField', function() { | ||
'use strict' | ||
|
||
return { | ||
transclude: true, | ||
template: require('./answerFieldTemplate.html'), | ||
replace: true, | ||
scope: { | ||
answer: '=', | ||
addressField: '=', | ||
datefield: '=' | ||
} | ||
} | ||
}); | ||
} |
21 changes: 21 additions & 0 deletions
21
DOL.WHD.Section14c.Web/src/modules/components/answerField/answerFieldTemplate.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,21 @@ | ||
<div class="answer-block"> | ||
<div class="answer-question"> | ||
<ng-transclude></ng-transclude> | ||
</div> | ||
<div class="answer-answer" ng-show="answer !== undefined"> | ||
<div ng-show="!addressField && !datefield"> | ||
{{ answer === true ? 'Yes' : answer === false ? 'No' : answer }} | ||
</div> | ||
<div ng-show="addressField"> | ||
{{ answer.streetAddress }} <br> | ||
{{ answer.city + ', ' + answer.state + ' ' + answer.zipCode }} <br> | ||
<p ng-show="answer.county"><em>County:</em> {{ answer.county }}</p> | ||
</div> | ||
<div ng-show="datefield"> | ||
{{ answer.month }} / {{ answer.day }} / {{ answer.year }} | ||
</div> | ||
</div> | ||
<div class="answer-answer" ng-show="answer === undefined"> | ||
NOT PROVIDED | ||
</div> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict'; | ||
|
||
module.exports = function(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
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
10 changes: 2 additions & 8 deletions
10
...on14c.Web/src/modules/components/mainNavigationControl/mainNavigationControlTemplate.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,11 +1,5 @@ | ||
<nav role="navigation" class="main-nav-bar"> | ||
<ul> | ||
<li class="nav-button {{ vm.current === 'assurances' ? 'active' : '' }}" data-sectionid="assurances" ng-click="vm.onNavClick($event)">Assurances</li> | ||
<li class="nav-button {{ vm.current === 'app-info' ? 'active' : '' }}" data-sectionid="app-info" ng-click="vm.onNavClick($event)">Application Info</li> | ||
<li class="nav-button {{ vm.current === 'employer' ? 'active' : '' }}" data-sectionid="employer" ng-click="vm.onNavClick($event)">Employer</li> | ||
<li class="nav-button {{ vm.current === 'wage-data' ? 'active' : '' }}" data-sectionid="wage-data" ng-click="vm.onNavClick($event)">Wage Data</li> | ||
<li class="nav-button {{ vm.current === 'work-sites' ? 'active' : '' }}" data-sectionid="work-sites" ng-click="vm.onNavClick($event)">Work Sites & Employees</li> | ||
<li class="nav-button {{ vm.current === 'wioa' ? 'active' : '' }}" data-sectionid="wioa" ng-click="vm.onNavClick($event)">WIOA</li> | ||
<li class="nav-button {{ vm.current === 'review' ? 'active' : '' }}" data-sectionid="review" ng-click="vm.onNavClick($event)" ng-show="vm.stateService.inReview">Review & Submit</li> | ||
<li ng-repeat="section in sections" class="nav-button {{ vm.current === section.id ? 'active' : '' }}" data-sectionid="{{ section.id }}" ng-click="vm.onNavClick($event)" ng-show="section.id !== 'review' || vm.stateService.inReview">{{ section.display }}</li> | ||
</ul> | ||
</nav> | ||
</nav> |
5 changes: 5 additions & 0 deletions
5
DOL.WHD.Section14c.Web/src/modules/components/sectionAdminAppInfo/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,5 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
require('./sectionAdminAppInfoDirective')(ngModule); | ||
}; |
13 changes: 13 additions & 0 deletions
13
...Section14c.Web/src/modules/components/sectionAdminAppInfo/sectionAdminAppInfoDirective.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,13 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.directive('sectionAdminAppInfo', function() { | ||
|
||
'use strict'; | ||
|
||
return { | ||
restrict: 'EA', | ||
template: require('./sectionAdminAppInfoTemplate.html') | ||
}; | ||
}); | ||
} |
Oops, something went wrong.