Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
var app = angular.module('studentAdmin', ['ngRoute']);
app.config(function($routeProvider) {
$routeProvider
.when("/", {
templateUrl : "tmpl/homeScreen.html",
controller: 'mainCtrl',
controllerAs: "ctrl"
})
.when("/classSearch", {
templateUrl : "tmpl/dynamicClassSearch.html",
controller: "searchCtrl",
controllerAs: "ctrl"
})
.otherwise( {
redirectTo: '/'
});
});
app.controller('mainCtrl', function() {});
app.controller('searchCtrl', function() {
var ctrl = this;
ctrl.query = {};
ctrl.options = {
"terms": [
"Fall 2016",
"Spring 2017",
"Fall 2017"
],
"sessions": [
"Regular Academic",
"ECE Early College Experience",
"Graduate"
],
"campuses": [
"Storrs",
"Avery Point",
"Hartford"
],
"departments" : [
{ "abbr": "CSE",
"full" : "Computer Science and Engineering"
},
{ "abbr": "DMD",
"full" : "Digital Media and Design"
}
],
"checkboxes" : [
{
"name": "open",
"value":false,
"label": "Open Only"
},
{
"name": "honors",
"value":false,
"label": "Honors Only"
},
{
"name": "quantitative",
"value":false,
"label": "Q Only"
},
{
"name": "writing",
"value":false,
"label": "W Only"
}
]
};
ctrl.chosen = { "term": false, "session": false, "campus": false};
ctrl.test = "TEST";
});