-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StudentSupportCallForm: Create new directive structure #1450
- Loading branch information
Showing
25 changed files
with
196 additions
and
1 deletion.
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
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions
22
...instructionalSupport/studentSupportCallForm/directives/confirmEligible/confirmEligible.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,22 @@ | ||
summaryApp.directive("confirmEligible", this.confirmEligible = function () { | ||
return { | ||
restrict: 'E', | ||
templateUrl: 'confirmEligible.html', | ||
replace: true, | ||
scope: { | ||
state: '<' | ||
}, | ||
link: function (scope, element, attrs) { | ||
scope.props = {}; | ||
scope.mapStateToProps(scope.state); | ||
|
||
$rootScope.$on('supportStaffFormStateChanged', function (event, data) { | ||
scope.mapStateToProps(data); | ||
}); | ||
|
||
scope.mapStateToProps = function(state) { | ||
return state; | ||
}; | ||
} | ||
}; | ||
}); |
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions
22
...port/studentSupportCallForm/directives/studentAvailabilities/crnAvailable/crnAvailable.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,22 @@ | ||
summaryApp.directive("crnAvailable", this.crnAvailable = function () { | ||
return { | ||
restrict: 'E', | ||
templateUrl: 'crnAvailable.html', | ||
replace: true, | ||
scope: { | ||
state: '<' | ||
}, | ||
link: function (scope, element, attrs) { | ||
scope.props = {}; | ||
scope.mapStateToProps(scope.state); | ||
|
||
$rootScope.$on('supportStaffFormStateChanged', function (event, data) { | ||
scope.mapStateToProps(data); | ||
}); | ||
|
||
scope.mapStateToProps = function(state) { | ||
return state; | ||
}; | ||
} | ||
}; | ||
}); |
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions
22
...rt/studentSupportCallForm/directives/studentAvailabilities/gridAvailable/gridAvailable.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,22 @@ | ||
summaryApp.directive("gridAvailable", this.gridAvailable = function () { | ||
return { | ||
restrict: 'E', | ||
templateUrl: 'gridAvailable.html', | ||
replace: true, | ||
scope: { | ||
state: '<' | ||
}, | ||
link: function (scope, element, attrs) { | ||
scope.props = {}; | ||
scope.mapStateToProps(scope.state); | ||
|
||
$rootScope.$on('supportStaffFormStateChanged', function (event, data) { | ||
scope.mapStateToProps(data); | ||
}); | ||
|
||
scope.mapStateToProps = function(state) { | ||
return state; | ||
}; | ||
} | ||
}; | ||
}); |
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions
22
...lSupport/studentSupportCallForm/directives/studentAvailabilities/studentAvailabilities.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,22 @@ | ||
summaryApp.directive("studentAvailabilities", this.studentAvailabilities = function () { | ||
return { | ||
restrict: 'E', | ||
templateUrl: 'studentAvailabilities.html', | ||
replace: true, | ||
scope: { | ||
state: '<' | ||
}, | ||
link: function (scope, element, attrs) { | ||
scope.props = {}; | ||
scope.mapStateToProps(scope.state); | ||
|
||
$rootScope.$on('supportStaffFormStateChanged', function (event, data) { | ||
scope.mapStateToProps(data); | ||
}); | ||
|
||
scope.mapStateToProps = function(state) { | ||
return state; | ||
}; | ||
} | ||
}; | ||
}); |
3 changes: 3 additions & 0 deletions
3
...nstructionalSupport/studentSupportCallForm/directives/studentComments/studentComments.css
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 @@ | ||
.student-comments { | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
...structionalSupport/studentSupportCallForm/directives/studentComments/studentComments.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,8 @@ | ||
<div class="student-comments"> | ||
<div ng-show="view.state.supportCallResponse.collectGeneralComments" class="input-box-area "> | ||
<h5 class="pull-left">Comments</h5> | ||
<textarea class="form-control" | ||
ng-model="view.params.supportCallResponse.generalComments" | ||
auto-input on-blur="updateSupportCallResponse()"></textarea> | ||
</div> | ||
</div> |
22 changes: 22 additions & 0 deletions
22
...instructionalSupport/studentSupportCallForm/directives/studentComments/studentComments.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,22 @@ | ||
summaryApp.directive("studentComments", this.studentComments = function () { | ||
return { | ||
restrict: 'E', | ||
templateUrl: 'studentComments.html', | ||
replace: true, | ||
scope: { | ||
state: '<' | ||
}, | ||
link: function (scope, element, attrs) { | ||
scope.props = {}; | ||
scope.mapStateToProps(scope.state); | ||
|
||
$rootScope.$on('supportStaffFormStateChanged', function (event, data) { | ||
scope.mapStateToProps(data); | ||
}); | ||
|
||
scope.mapStateToProps = function(state) { | ||
return state; | ||
}; | ||
} | ||
}; | ||
}); |
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions
22
...ructionalSupport/studentSupportCallForm/directives/studentFormReview/studentFormReview.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,22 @@ | ||
summaryApp.directive("studentFormReview", this.studentFormReview = function () { | ||
return { | ||
restrict: 'E', | ||
templateUrl: 'studentFormReview.html', | ||
replace: true, | ||
scope: { | ||
state: '<' | ||
}, | ||
link: function (scope, element, attrs) { | ||
scope.props = {}; | ||
scope.mapStateToProps(scope.state); | ||
|
||
$rootScope.$on('supportStaffFormStateChanged', function (event, data) { | ||
scope.mapStateToProps(data); | ||
}); | ||
|
||
scope.mapStateToProps = function(state) { | ||
return state; | ||
}; | ||
} | ||
}; | ||
}); |
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions
22
...ctionalSupport/studentSupportCallForm/directives/studentPreferences/studentPreferences.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,22 @@ | ||
summaryApp.directive("studentPreferences", this.studentPreferences = function () { | ||
return { | ||
restrict: 'E', | ||
templateUrl: 'studentPreferences.html', | ||
replace: true, | ||
scope: { | ||
state: '<' | ||
}, | ||
link: function (scope, element, attrs) { | ||
scope.props = {}; | ||
scope.mapStateToProps(scope.state); | ||
|
||
$rootScope.$on('supportStaffFormStateChanged', function (event, data) { | ||
scope.mapStateToProps(data); | ||
}); | ||
|
||
scope.mapStateToProps = function(state) { | ||
return state; | ||
}; | ||
} | ||
}; | ||
}); |
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions
22
...upport/studentSupportCallForm/directives/teachingQualifications/teachingQualifications.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,22 @@ | ||
summaryApp.directive("teachingQualifications", this.teachingQualifications = function () { | ||
return { | ||
restrict: 'E', | ||
templateUrl: 'teachingQualifications.html', | ||
replace: true, | ||
scope: { | ||
state: '<' | ||
}, | ||
link: function (scope, element, attrs) { | ||
scope.props = {}; | ||
scope.mapStateToProps(scope.state); | ||
|
||
$rootScope.$on('supportStaffFormStateChanged', function (event, data) { | ||
scope.mapStateToProps(data); | ||
}); | ||
|
||
scope.mapStateToProps = function(state) { | ||
return state; | ||
}; | ||
} | ||
}; | ||
}); |