Commit dacbab28 authored by Aron Carroll's avatar Aron Carroll Committed by Randall Leeds

Remove unimplemented templates and directives

We're only implementing the account form for the moment.
parent d1bf6b1d
......@@ -368,14 +368,6 @@ match = ->
restrict: 'A'
require: 'ngModel'
confirmPasswordCheck = ['$resource', ($resource)->
link: (scope, elem, attr, ctrl) ->
return unless ctrl?
# Check password against server.
restrict: 'A'
require: 'ngModel'
]
accountManagement = ['$filter', 'flash', 'profile', ($filter, flash, profile) ->
link: (scope, elem, attr, ctrl) ->
scope.emailCheck = ->
......@@ -437,38 +429,6 @@ accountManagement = ['$filter', 'flash', 'profile', ($filter, flash, profile) ->
templateUrl: 'account_management.html'
]
accountProfile = ->
# This is the acount profile stuff that will eventually be outside of the settings panel.
# Rational for keeping it in the settings panel (temporarily):
# 1. We might as well write the back end for this stuff, then when I do the front end stuff for profiles we'll
# have the backend work started.
# 2. As a directive it is extremely easy to move this around and get it out of the side bar.
link: (scope, elem, attr, ctrl) ->
scope.editProfile = ->
# Switches profile into edit mode.
return
controller: ($scope) ->
$scope.demoData =
# Is there any thing else we should be collecting for now?
name : "Jake Hartnell"
password : "password"
location : "Berkeley, CA"
bio : "A short bio..."
website : "http://jakehartnell.com"
gravatar : ""
restrict: 'C'
templateUrl: 'profile.html'
settings = ->
# Question: Should each setting be it's own directive?
link: (scope, elem, attr, ctrl) ->
return
controller: ($scope) ->
return
restrict: 'C'
templateUrl: 'settings.html'
angular.module('h.directives', ['ngSanitize', 'ngTagsInput'])
.directive('formValidate', formValidate)
.directive('fuzzytime', fuzzytime)
......@@ -482,7 +442,4 @@ angular.module('h.directives', ['ngSanitize', 'ngTagsInput'])
.directive('repeatAnim', repeatAnim)
.directive('whenscrolled', whenscrolled)
.directive('match', match)
.directive('confirmPasswordCheck', confirmPasswordCheck)
.directive('accountManagement', accountManagement)
.directive('accountProfile', accountProfile)
.directive('settings', settings)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment