Add forgot-password form

stable
David Barragán Merino 2014-07-07 14:40:47 +02:00
parent fc988d0e95
commit a43e053e77
5 changed files with 31 additions and 2 deletions

View File

@ -41,6 +41,7 @@ configure = ($routeProvider, $locationProvider, $httpProvider, $provide,
# Auth # Auth
$routeProvider.when("/login", {templateUrl: "/partials/login.html"}) $routeProvider.when("/login", {templateUrl: "/partials/login.html"})
$routeProvider.when("/register", {templateUrl: "/partials/register.html"}) $routeProvider.when("/register", {templateUrl: "/partials/register.html"})
$routeProvider.when("/forgot-password", {templateUrl: "/partials/forgot-password.html"})
$routeProvider.otherwise({redirectTo: '/login'}) $routeProvider.otherwise({redirectTo: '/login'})
$locationProvider.html5Mode(true) $locationProvider.html5Mode(true)

View File

@ -185,5 +185,12 @@ RegisterDirective = ($auth, $confirm) ->
return {link:link} return {link:link}
ForgotPasswordDirective = ($auth, $confirm) ->
link = ($scope, $el, $attrs) ->
console.log "caca"
module.directive("tgRegister", ["$tgAuth", "$tgConfirm", RegisterDirective]) module.directive("tgRegister", ["$tgAuth", "$tgConfirm", RegisterDirective])
module.directive("tgLogin", ["$tgAuth", "$tgConfirm", "$location", LoginDirective]) module.directive("tgLogin", ["$tgAuth", "$tgConfirm", "$location", LoginDirective])
module.directive("tgForgotPassword", ["$tgAuth", "$tgConfirm", "$location", ForgotPasswordDirective])

View File

@ -160,6 +160,9 @@ module.directive("tgMain", ["$log", "$compile", "$rootScope", MainTaigaDirective
urls = { urls = {
"home": "/", "home": "/",
"logint": "/login",
"forgot-password": "/forgot-password",
"register": "/register",
"profile": "/:user", "profile": "/:user",
"project": "/project/:project", "project": "/project/:project",
"project-backlog": "/project/:project/backlog", "project-backlog": "/project/:project/backlog",

View File

@ -0,0 +1,18 @@
extends dummy-layout
block head
title Taiga Project management web application with scrum in mind!
block content
div.wrapper
div.login-main
div.login-container
h1.logo
img(src="/images/logo.png", alt="TAIGA")
p.tagline Project management web application with scrum in mind!
p.login-error
span.title Ooops! Something went wrong!
span.text According to our Oompa Loompas, your are not registered yet.
a.icon.icon-delete(href="", title="Close message")
include views/modules/forgot-form

View File

@ -1,8 +1,8 @@
div.forgot-form-container div.forgot-form-container(tg-forgot-Password)
p.forgot-text p.forgot-text
strong Don't worry, it happens even in the best families :-) <br /> strong Don't worry, it happens even in the best families :-) <br />
span Give us your mail and we'll sent you instructions to get a new one span Give us your mail and we'll sent you instructions to get a new one
form form{ng-submit="ctrl.submit()"}
fieldset fieldset
input(type="text", placeholder="Your email") input(type="text", placeholder="Your email")
fieldset fieldset