parent
3ff36d9247
commit
6025a1b0e5
@ -0,0 +1,6 @@ |
||||
<div class="work-package--watchers-lookup"> |
||||
<form data-ng-submit="addWatcher()"> |
||||
<input type="text" placeholder="Type to add a watcher" data-ng-model="watcher"> |
||||
</form> |
||||
</div> |
||||
|
@ -0,0 +1,19 @@ |
||||
module.exports = function() { |
||||
'use strict'; |
||||
|
||||
var workPackageWatchersLookupController = function(scope) { |
||||
scope.addWatcher = function() { |
||||
scope.$emit('watchers.add', scope.watcher); |
||||
}; |
||||
}; |
||||
|
||||
return { |
||||
replace: true, |
||||
restrict: 'E', |
||||
templateUrl: '/templates/work_packages/watchers/lookup.html', |
||||
link: workPackageWatchersLookupController, |
||||
scope: { |
||||
watchers: '=' |
||||
} |
||||
}; |
||||
}; |
Loading…
Reference in new issue