Skip to content

Commit

Permalink
StudentSupportForm: Removing unneeded logic from student support call…
Browse files Browse the repository at this point in the history
… form controller #1450
  • Loading branch information
ltwheeler committed Nov 28, 2017
1 parent 7fb7ba6 commit 7712e43
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
6 changes: 3 additions & 3 deletions app/instructionalSupport/instructionalSupport.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@
<link rel="stylesheet" href="/css/neon-theme.css">
<link rel="stylesheet" href="/css/neon-forms.css">
<link rel="stylesheet" href="/css/shared.css">

<link rel="stylesheet" href="/css/instructionalSupportAssignment.css">
<link rel="stylesheet" href="/css/instructionalSupportCallStatus.css">
<link rel="stylesheet" href="/css/studentSupportCallForm.css">
<link rel="stylesheet" href="/css/studentSupportCallFormModal.css">
<link rel="stylesheet" href="/css/instructorSupportCallForm.css">
<link rel="stylesheet" href="/css/instructorSupportCallFormModal.css">
<link rel="stylesheet" href="/css/instructionalSupportCallConfig.css">

<!-- Student Support Call Form -->
<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/studentFormReview.css">
<link rel="stylesheet" href="/css/confirmEligible.css">

<script src="/js/lib.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<ipa-modal
is-visible="view.state.isPreferenceCommentModalOpen"
header-text="Add Preference Comment">
<modal-proference-comments ng-if="view.state.openAddBudgetScenario" state="view.state"></add-budget-scenario>
<modal-proference-comments ng-if="view.state.openAddBudgetScenario" state="view.state"></modal-proference-comments>
</ipa-modal>

<!-- Page modules -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,13 @@ instructionalSupportApp.controller('StudentSupportCallFormCtrl', ['$scope', '$ro
$scope.year = $routeParams.year;
$scope.termShortCode = $routeParams.termShortCode;
$scope.nextYear = (parseInt($scope.year) + 1).toString().slice(-2);

$scope.view = {};

$rootScope.$on('studentStateChanged', function (event, data) {
$scope.view.state = data;
});

$scope.toggleEligibilityConfirmed = function() {
if ($scope.view.state.supportCallResponse.eligibilityConfirmed) {
$scope.view.state.supportCallResponse.eligibilityConfirmed = false;
} else {
$scope.view.state.supportCallResponse.eligibilityConfirmed = true;
}

studentActions.updateSupportCallResponse($scope.view.state.supportCallResponse);
};

$scope.addPreference = function(preference) {
studentActions.addStudentPreference(preference);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
instructionalSupportApp.service('supportStaffFormActionCreators', function ($rootScope, $window, studentService, studentReducers) {
instructionalSupportApp.service('studentActions', function ($rootScope, $window, studentService, studentReducers) {
return {
getInitialState: function (workgroupId, year, termShortCode) {
studentService.getInitialState(workgroupId, year, termShortCode).then(function (payload) {
Expand Down

0 comments on commit 7712e43

Please sign in to comment.