mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-03-09 23:38:54 +00:00
Initial Commit
This commit is contained in:
commit
c92f737237
273 changed files with 16964 additions and 0 deletions
19
client/app/modals/complex_var_modal/complexVariable.html
Normal file
19
client/app/modals/complex_var_modal/complexVariable.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!-- Modal content-->
|
||||
<div class="modal-content" style="width:500px;">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" ng-click="cancel()">×</button>
|
||||
<h4 class="modal-title">Play</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<h4>{{path}}</h4>
|
||||
|
||||
<complex-var members="members" path="'Parent'" type="'object'" input-width="'400px'" host-vars="hostvars">
|
||||
|
||||
</complex-var>
|
||||
</div>
|
||||
<div class="alert alert-danger" ng-if="err_msg">{{err_msg}}</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-success" type="button" ng-click="ok()">OK <span class="fa fa-thumbs-o-up" ></span> </button>
|
||||
<button class="btn btn-default" type="button" ng-click="cancel()">Close</button>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,21 @@
|
|||
'use strict';
|
||||
const angular = require('angular');
|
||||
|
||||
/*@ngInject*/
|
||||
export function complexVarModalController($scope,$uibModalInstance,hostvars,members) {
|
||||
|
||||
$scope.members = members || {};
|
||||
$scope.hostvars = hostvars;
|
||||
|
||||
$scope.ok = function () {
|
||||
$uibModalInstance.close($scope.members);
|
||||
};
|
||||
|
||||
$scope.cancel = function () {
|
||||
$uibModalInstance.dismiss('cancel');
|
||||
};
|
||||
}
|
||||
|
||||
export default angular.module('webAppApp.complex_var_modal', [])
|
||||
.controller('ComplexVarModalController', complexVarModalController)
|
||||
.name;
|
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
describe('Controller: ComplexVarModalCtrl', function() {
|
||||
// load the controller's module
|
||||
beforeEach(module('webAppApp.complex_var_modal'));
|
||||
|
||||
var ComplexVarModalCtrl;
|
||||
|
||||
// Initialize the controller and a mock scope
|
||||
beforeEach(inject(function($controller) {
|
||||
ComplexVarModalCtrl = $controller('ComplexVarModalCtrl', {});
|
||||
}));
|
||||
|
||||
it('should ...', function() {
|
||||
expect(1).to.equal(1);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue