This file contains 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
<!-- list of draft survey questions --> | |
<div class="questionList" ng-repeat="question in draftQuestionBank | orderBy: 'order'"> | |
<div ng-if="question.type === 'textField'" class="survey-class"> | |
<text-field title="question.question" survey-title="question.mainTitle" draft-index="question.order" edit-state="true"></text-field> | |
</div> | |
<div ng-if="question.type === 'textArea'"> | |
<text-area-field title="question.question" survey-title="question.mainTitle" index="{{ $index + 1 }}"></text-area-field> | |
</div> | |
<div ng-if="question.type === 'multipleChoice'"> | |
<mcq title="question.question" survey-title="question.mainTitle" index="{{ $index + 1 }}"></mcq> |
This file contains 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
/*global TodoMVC: true, Backbone */ | |
var TodoMVC = TodoMVC || {}; | |
(function () { | |
'use strict'; | |
var searchChannel = Backbone.Radio.channel('search'); | |
// Todo List Item View |
This file contains 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 bcrypt = require('bcrypt-nodejs'); | |
module.exports = function(sequelize, DataTypes) { | |
return sequelize.define('users', { | |
username: { | |
type: DataTypes.STRING, | |
unqiue: true | |
}, | |
password: DataTypes.STRING, | |
role: DataTypes.STRING |
This file contains 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 express = require('express'); | |
var path = require('path'); | |
var favicon = require('serve-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var session = require('express-session'); | |
var bodyParser = require('body-parser'); | |
var lusca = require('lusca'); | |
var flash = require('express-flash'); | |
var methodOverride = require('method-override'); |