/**
* Created by cklimkowsky on 3/16/15.
*/
angular
.module('coopEval')
.controller('AddFormModalController', AddFormModalController);
function AddFormModalController($scope, $modalInstance, formType) {
// The new form to be created, with a name and an indication of
// whether it is a student form or employer form
$scope.form = {
name: null,
isStudentForm: formType == 0 ? true : false
};
$scope.add = function () {
$modalInstance.close($scope.form);
};
$scope.cancel = function () {
$modalInstance.dismiss();
};
} |