Begin work on the admin field editing screen.
[bugdar.git] / static / admin.js
1 angular.module('bugdar.admin.settings', [])
2 .directive('settingType', ['$templateCache', function($templateCache) {
3 return {
4 restrict: 'A',
5 replace: false,
6 template: $templateCache.get('-/admin/settings/row.tpl'),
7 scope: {
8 title: '@',
9 description: '@',
10 settingType: '@',
11 name: '@',
12 value: '@'
13 }
14 };
15 }]);
16
17 angular.module('bugdar.admin.fields', [])
18 .directive('fieldType', ['$templateCache', function($templateCache) {
19 return {
20 restrict: 'A',
21 replace: true,
22 template: $templateCache.get('-/admin/fields/field-type-option.tpl'),
23 scope: {
24 fieldType: '@'
25 }
26 };
27 }])
28 .controller('FieldEditor', ['$scope', function($scope) {
29 }]);