Skip to content

Commit

Permalink
StudentSupportCallForm: Create new directive structure #1450
Browse files Browse the repository at this point in the history
  • Loading branch information
ltwheeler committed Nov 27, 2017
1 parent 757d903 commit cb28d82
Show file tree
Hide file tree
Showing 25 changed files with 196 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/instructionalSupport/instructionalSupport.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,16 @@
<link rel="stylesheet" href="/css/instructorSupportCallFormModal.css">
<link rel="stylesheet" href="/css/instructionalSupportCallConfig.css">

<script src="/js/lib.js"></script>
<link rel="stylesheet" href="/css/studentComments.css">
<link rel="stylesheet" href="/css/studentPreferences.css">
<link rel="stylesheet" href="/css/teachingQualifications.css">
<link rel="stylesheet" href="/css/studentAvailabilities.css">
<link rel="stylesheet" href="/css/crnAvailable.css">
<link rel="stylesheet" href="/css/gridAvailable.css">
<link rel="stylesheet" href="/css/studentFormFreview.css">
<link rel="stylesheet" href="/css/confirmEligible.css">

<script src="/js/lib.js"></script>
</head>
<body class="page-body ng-cloak" ng-app="instructionalSupportApp" ng-cloak ng-controller="SharedCtrl">
<base href="/instructionalSupport/">
Expand Down
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;
};
}
};
});
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;
};
}
};
});
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;
};
}
};
});
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;
};
}
};
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.student-comments {

}
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>
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;
};
}
};
});
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;
};
}
};
});
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;
};
}
};
});
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;
};
}
};
});

0 comments on commit cb28d82

Please sign in to comment.