             $el.off()
 
     return {link: link}
-module.directive("tgRelatedTaskCreateForm", ["$tgRepo", "$compile", "$tgConfirm", "$tgModel", "$tgLoading", "$tgAnalytics", "$tgTemplate", RelatedTaskCreateFormDirective])
+
+module.directive("tgRelatedTaskCreateForm", ["$tgRepo", "$compile", "$tgConfirm", "$tgModel", "$tgLoading",
+                                             "$tgAnalytics", "$tgTemplate", RelatedTaskCreateFormDirective])
+
 
 RelatedTaskCreateButtonDirective = ($repo, $compile, $confirm, $tgmodel, $template) ->
     template = $template.get("common/components/add-button.html", true)

            promise = $repo.save(task)
            promise.then =>
                currentLoading.finish()
                $confirm.notify("success")
                $rootscope.$broadcast("related-tasks:update")

            promise.then null, =>


    return {link:link, require:"ngModel"}

module.directive("tgRelatedTaskRow", ["$tgRepo", "$compile", "$tgConfirm", "$rootScope", "$tgLoading",
                                      "$tgTemplate", "$translate", RelatedTaskRowDirective])


RelatedTaskCreateFormDirective = ($repo, $compile, $confirm, $tgmodel, $loading, $analytics, $template) ->
    template = $template.get("task/related-task-create-form.html", true)
