1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-03-09 23:38:54 +00:00

Fix Template loading

This commit is contained in:
Mumshad Mannambeth 2017-07-08 13:40:03 -04:00
parent 7ace379937
commit 34a003c698
7 changed files with 16 additions and 32 deletions

View file

@ -166,8 +166,7 @@ export class CustomModulesComponent {
$scope.result = ""; $scope.result = "";
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('../../app/modals/complex_var_modal/complexVariable.html'),
templateUrl: 'app/modals/complex_var_modal/complexVariable.html',
controller: 'ComplexVarModalController', controller: 'ComplexVarModalController',
size: 'sm', size: 'sm',
backdrop: 'static', backdrop: 'static',

View file

@ -75,8 +75,7 @@ export class InventoryComponent {
$scope.showCreatInventoryModal = function () { $scope.showCreatInventoryModal = function () {
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('./new_inventory/new_inventory.html'),
templateUrl: 'app/designer/inventory/new_inventory/new_inventory.html',
controller: 'NewInventoryController', controller: 'NewInventoryController',
size: 'md', size: 'md',
backdrop: 'static', backdrop: 'static',
@ -105,8 +104,7 @@ export class InventoryComponent {
$scope.showCreateGroupModal = function (editGroup) { $scope.showCreateGroupModal = function (editGroup) {
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('./new_group/new_group.html'),
templateUrl: 'app/designer/inventory/new_group/new_group.html',
controller: 'NewGroupController', controller: 'NewGroupController',
size: 'lg', size: 'lg',
backdrop: 'static', backdrop: 'static',
@ -145,8 +143,7 @@ export class InventoryComponent {
$scope.showCreateHostModal = function (editHost) { $scope.showCreateHostModal = function (editHost) {
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('./new_host/new_host.html'),
templateUrl: 'app/designer/inventory/new_host/new_host.html',
controller: 'NewHostController', controller: 'NewHostController',
size: 'lg', size: 'lg',
backdrop: 'static', backdrop: 'static',

View file

@ -86,8 +86,7 @@ export class PlaybookComponent {
$scope.showCreatePlaybookModal = function(){ $scope.showCreatePlaybookModal = function(){
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('./new_playbook/new_playbook.html'),
templateUrl: 'app/designer/playbook/new_playbook/new_playbook.html',
controller: 'NewPlaybookController', controller: 'NewPlaybookController',
size: 'md', size: 'md',
backdrop : 'static', backdrop : 'static',
@ -156,8 +155,7 @@ export class PlaybookComponent {
$scope.showCreatePlayModal = function(selectedPlayIndex){ $scope.showCreatePlayModal = function(selectedPlayIndex){
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createPlayContent.html',*/ template: require('./new_play/new_play.html'),
templateUrl: 'app/designer/playbook/new_play/new_play.html',
controller: 'NewPlayController', controller: 'NewPlayController',
size: 'lg', size: 'lg',
backdrop : 'static', backdrop : 'static',
@ -211,11 +209,10 @@ export class PlaybookComponent {
// ------------------- EXECUTE PLAYBOOK MODAL ------------- // ------------------- EXECUTE PLAYBOOK MODAL -------------
$scope.executeAnsiblePlayBook = function(tags,executionType,executionName,selectedPlay){ $scope.executeAnsiblePlayBook = function(tags,executionType,executionName,selectedPlay){
console.log("Tags type" + typeof tags)
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('../execution/executeModal.html'),
templateUrl: 'app/designer/execution/executeModal.html',
controller: 'ExecutionController', controller: 'ExecutionController',
size: 'lg', size: 'lg',
backdrop : 'static', backdrop : 'static',

View file

@ -196,8 +196,7 @@ export class RolesComponent {
$scope.showCreateFileModal = function (selectedFile, copyFile) { $scope.showCreateFileModal = function (selectedFile, copyFile) {
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('./new_file/new_file.html'),
templateUrl: 'app/designer/roles/new_file/new_file.html',
controller: 'NewFileController', controller: 'NewFileController',
size: 'md', size: 'md',
backdrop: 'static', backdrop: 'static',
@ -230,8 +229,7 @@ export class RolesComponent {
$scope.showCreateRoleModal = function (copyRole) { $scope.showCreateRoleModal = function (copyRole) {
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('./new_role/new_role.html'),
templateUrl: 'app/designer/roles/new_role/new_role.html',
controller: 'NewRoleController', controller: 'NewRoleController',
size: 'md', size: 'md',
backdrop: 'static', backdrop: 'static',
@ -259,8 +257,7 @@ export class RolesComponent {
$scope.showSearchRoleModal = function () { $scope.showSearchRoleModal = function () {
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('./search_role/search_role.html'),
templateUrl: 'app/designer/roles/search_role/search_role.html',
controller: 'SearchRoleController', controller: 'SearchRoleController',
size: 'lg', size: 'lg',
backdrop: 'static', backdrop: 'static',
@ -399,17 +396,14 @@ export class RolesComponent {
// ------------------- EXECUTE PLAYBOOK MODAL ------------- // ------------------- EXECUTE PLAYBOOK MODAL -------------
$scope.executeAnsiblePlayBook = function (tags, executionType, executionName, selectedPlay) { $scope.executeAnsiblePlayBook = function (tags, executionType, executionName, selectedPlay) {
console.log("Tags type" + typeof tags);
var projectRolesFolder = Projects.selectedProject.ansibleEngine.projectFolder + '/roles'; var projectRolesFolder = Projects.selectedProject.ansibleEngine.projectFolder + '/roles';
var rolesFolder = projectRolesFolder + '/' + $scope.selectedRole.role; var rolesFolder = projectRolesFolder + '/' + $scope.selectedRole.role;
var roleName = $scope.selectedRole.role; var roleName = $scope.selectedRole.role;
console.log("Projects Roles Folder" + projectRolesFolder);
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('../execution/executeModal.html'),
templateUrl: 'app/designer/execution/executeModal.html',
controller: 'ExecutionController', controller: 'ExecutionController',
size: 'lg', size: 'lg',
backdrop: 'static', backdrop: 'static',

View file

@ -414,8 +414,7 @@ export function newTaskController($window, $scope, $sce, $uibModal, ansi2html, a
variable.isComplexVariable = true; variable.isComplexVariable = true;
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('../../../modals/complex_var_modal/complexVariable.html'),
templateUrl: 'app/modals/complex_var_modal/complexVariable.html',
controller: 'ComplexVarModalController', controller: 'ComplexVarModalController',
size: 'sm', size: 'sm',
backdrop: 'static', backdrop: 'static',

View file

@ -4,7 +4,7 @@ const angular = require('angular');
export default angular.module('webAppApp.tasks', []) export default angular.module('webAppApp.tasks', [])
.directive('tasks', function(ansible, $uibModal) { .directive('tasks', function(ansible, $uibModal) {
return { return {
templateUrl: 'app/designer/tasks/tasks.html', template: require('./tasks.html'),
restrict: 'EA', restrict: 'EA',
scope: { scope: {
tasksList: '=', tasksList: '=',
@ -23,7 +23,6 @@ export default angular.module('webAppApp.tasks', [])
scope.tasksMetaData = []; scope.tasksMetaData = [];
scope.$watch('tasksList',function(){ scope.$watch('tasksList',function(){
console.log('tasks list changed');
scope.tasksMetaData = []; scope.tasksMetaData = [];
angular.forEach(scope.tasksList,function(task){ angular.forEach(scope.tasksList,function(task){
@ -94,8 +93,7 @@ export default angular.module('webAppApp.tasks', [])
scope.showTaskModal = function(selectedTaskIndex, copyTask){ scope.showTaskModal = function(selectedTaskIndex, copyTask){
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: true, animation: true,
/*templateUrl: 'createTaskContent.html',*/ template: require('./new_task/new_task.html'),
templateUrl: 'app/designer/tasks/new_task/new_task.html',
controller: 'NewTaskController', controller: 'NewTaskController',
size: 'lg', size: 'lg',
backdrop : 'static', backdrop : 'static',

View file

@ -41,7 +41,7 @@ export class RunsComponent {
$scope.showLogs = function(runData){ $scope.showLogs = function(runData){
var modalInstance = $uibModal.open({ var modalInstance = $uibModal.open({
animation: false, animation: false,
templateUrl: 'app/designer/execution/executeModal.html', template: require('../designer/execution/executeModal.html'),
controller: 'ExecutionController', controller: 'ExecutionController',
size: 'lg', size: 'lg',
backdrop : 'static', backdrop : 'static',