Add separations between directives on backlog lightboxes.
parent
8c1c3a376d
commit
6bc662a1b9
|
@ -22,6 +22,12 @@
|
||||||
taiga = @.taiga
|
taiga = @.taiga
|
||||||
bindOnce = @.taiga.bindOnce
|
bindOnce = @.taiga.bindOnce
|
||||||
|
|
||||||
|
module = angular.module("taigaBacklog")
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
## Create/Edit Userstory Lightbox Directive
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope) ->
|
CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope) ->
|
||||||
link = ($scope, $el, attrs) ->
|
link = ($scope, $el, attrs) ->
|
||||||
isNew = true
|
isNew = true
|
||||||
|
@ -104,6 +110,17 @@ CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope) ->
|
||||||
|
|
||||||
return {link: link}
|
return {link: link}
|
||||||
|
|
||||||
|
module.directive("tgLbCreateEditUserstory", [
|
||||||
|
"$tgRepo",
|
||||||
|
"$tgModel",
|
||||||
|
"$tgResources",
|
||||||
|
"$rootScope",
|
||||||
|
CreateEditUserstoryDirective
|
||||||
|
])
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
## Creare Bulk Userstories Lightbox Directive
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
CreateBulkUserstoriesDirective = ($repo, $rs, $rootscope) ->
|
CreateBulkUserstoriesDirective = ($repo, $rs, $rootscope) ->
|
||||||
link = ($scope, $el, attrs) ->
|
link = ($scope, $el, attrs) ->
|
||||||
|
@ -136,11 +153,23 @@ CreateBulkUserstoriesDirective = ($repo, $rs, $rootscope) ->
|
||||||
|
|
||||||
return {link: link}
|
return {link: link}
|
||||||
|
|
||||||
|
module.directive("tgLbCreateBulkUserstories", [
|
||||||
|
"$tgRepo",
|
||||||
|
"$tgResources",
|
||||||
|
"$rootScope",
|
||||||
|
CreateBulkUserstoriesDirective
|
||||||
|
])
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
## Creare/Edit Sprint Lightbox Directive
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
CreateEditSprint = ($repo, $confirm, $rs, $rootscope) ->
|
CreateEditSprint = ($repo, $confirm, $rs, $rootscope) ->
|
||||||
link = ($scope, $el, attrs) ->
|
link = ($scope, $el, attrs) ->
|
||||||
createSprint = true
|
createSprint = true
|
||||||
|
|
||||||
|
# FIXME: form should be initialized once and used in
|
||||||
|
# each submit...
|
||||||
submit = ->
|
submit = ->
|
||||||
form = $el.find("form").checksley()
|
form = $el.find("form").checksley()
|
||||||
if not form.validate()
|
if not form.validate()
|
||||||
|
@ -217,22 +246,6 @@ CreateEditSprint = ($repo, $confirm, $rs, $rootscope) ->
|
||||||
return {link: link}
|
return {link: link}
|
||||||
|
|
||||||
|
|
||||||
module = angular.module("taigaBacklog")
|
|
||||||
module.directive("tgLbCreateEditUserstory", [
|
|
||||||
"$tgRepo",
|
|
||||||
"$tgModel",
|
|
||||||
"$tgResources",
|
|
||||||
"$rootScope",
|
|
||||||
CreateEditUserstoryDirective
|
|
||||||
])
|
|
||||||
|
|
||||||
module.directive("tgLbCreateBulkUserstories", [
|
|
||||||
"$tgRepo",
|
|
||||||
"$tgResources",
|
|
||||||
"$rootScope",
|
|
||||||
CreateBulkUserstoriesDirective
|
|
||||||
])
|
|
||||||
|
|
||||||
module.directive("tgLbCreateEditSprint", [
|
module.directive("tgLbCreateEditSprint", [
|
||||||
"$tgRepo",
|
"$tgRepo",
|
||||||
"$tgConfirm",
|
"$tgConfirm",
|
||||||
|
|
Loading…
Reference in New Issue