This file contains hidden or 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
SQL: grab questions for page | |
CF: | |
NavBar | |
Sidebar | |
Body/Content | |
Loop(questions) { | |
Module(options) {} | |
} | |
Next Page |
This file contains hidden or 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
var pageInfo = []; | |
var questionInfo = {}; | |
// Loop over the questions to fill in the other aspects (options / responses) | |
for(var record in local.results) { | |
structClear(local.questionInfo); | |
structInsert(local.questionInfo, "question", record); | |
structInsert(local.questionInfo, "options", record.qID); | |
structInsert(local.questionInfo, "responses", 1); |
This file contains hidden or 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
<div class="form-group"> | |
<label for="schoolLevel">Which school are you currently attending?</label> | |
<select name="schoolLevel" id="schoolLevel" class="form-control"> | |
<option value="0"></option> | |
<option value="1">High School</option> | |
<option value="2">Home School</option> | |
<option value="3">2yr College</option> | |
<option value="4">4yr College</option> | |
<option value="5">Other</option> | |
<option value="6">Not Attending</option> |
This file contains hidden or 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
app.factory('InterviewPageFactory', function($http, URL) { | |
var getData = function(pageID) { | |
return $http.get(URL + 'interviews/page/' + pageID); | |
} | |
return { | |
getData: getData | |
}; | |
}); |
This file contains hidden or 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
(function(global, $) { | |
var ccREST = function(studentID, institutionID, clusterID) { | |
return new ccREST.init(studentID, institutionID, clusterID); | |
}; | |
var BASE_API_URL = '/api/v1/index.cfm'; | |
var createResponsePackage = function(clusterID) { | |
clusterID = clusterID || 0; |
This file contains hidden or 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
submitResponses: function() { | |
$.ajax({ | |
url : postResponseURL(this.studentID), | |
method : 'POST', | |
dataType : 'json', | |
data : JSON.stringify(this.responseObject), | |
contentType : "application/json; charset=utf-8", | |
success : function(data, status) { | |
this.resetResponsePackage(); | |
}, |
This file contains hidden or 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
'use strict'; | |
/** | |
* @ngdoc overview | |
* @name app [smartadminApp] | |
* @description | |
* # app [smartadminApp] | |
* | |
* Main module of the application. | |
*/ |
This file contains hidden or 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
component extends="taffy.core.resource" taffy_uri="/students/{studentID:[0-9]+}/details" { | |
function get(required numeric studentID) { | |
try { | |
var proc = new storedProc(); | |
//proc.setDatasource( "MyCCMajors" ); | |
proc.setProcedure("generateReportDetailsByID"); | |
proc.addParam(value=arguments.studentID, cfsqltype="cf_sql_integer"); |
This file contains hidden or 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
angular.module('cc.services').factory('studentFactory', function($http) { | |
var urlBase = '/api/v1/index.cfm/students'; | |
var resourceFactory = {}; | |
resourceFactory.getList = function() { | |
return $http.get(urlBase); | |
}; | |
resourceFactory.getStudentByID = function(studentID) { |
This file contains hidden or 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
'use strict'; | |
angular.module('app.student').controller('ccRecommendationsCtrl', function () { | |
this.showClusters = function() { | |
return this.recommendations.length; | |
}; | |
this.showDisciplines = function(cluster) { | |
return cluster.disciplines.length; |
OlderNewer