SmartIT_Extensions/BMC/smart-it-full-helix/scripts/app/template/preview-template-details-di...

37 lines
1.2 KiB
JavaScript

"use strict";
//TODO: preview single task template directive should use ticket-template-details.html
//TODO: however backend data for incident, workorder and task template are not consistent, waiting for backend data
(function () {
'use strict';
angular.module('templateModule')
.directive('previewSingleTaskTemplate', [function () {
return {
restrict: 'E',
templateUrl: 'views/template/single-task-template-details.html',
scope: {
template: '='
}
};
}])
.directive('previewTaskGroupTemplate', [function () {
return {
restrict: 'E',
templateUrl: 'views/template/task-group-template-details.html',
scope: {
templates: '=',
state: '=',
type: '='
}
};
}])
.directive('previewTicketTemplate', [function () {
return {
restrict: 'E',
templateUrl: 'views/template/ticket-template-details.html',
scope: {
template: '='
}
};
}]);
}());