/** * @ngdoc module * @name Bastion.activation-keys * * @description * Module for activation keys related functionality. */ angular.module('Bastion.activation-keys', [ 'ngResource', 'ui.router', 'Bastion', 'Bastion.utils', 'Bastion.components', 'Bastion.host-collections' ]); angular.module('Bastion.activation-keys').config(['$stateProvider', function ($stateProvider) { $stateProvider.state('activation-keys', { abstract: true, controller: 'ActivationKeysController', templateUrl: 'activation-keys/views/activation-keys.html' }) .state('activation-keys.index', { url: '/activation_keys', permission: 'view_activation_keys', views: { 'table': { templateUrl: 'activation-keys/views/activation-keys-table-full.html' } } }) .state('activation-keys.new', { url: '/activation_keys/new', permission: 'create_activation_keys', collapsed: true, views: { 'table': { templateUrl: 'activation-keys/views/activation-keys-table-collapsed.html' }, 'action-panel': { controller: 'NewActivationKeyController', templateUrl: 'activation-keys/new/views/activation-key-new.html' } } }); $stateProvider.state("activation-keys.details", { abstract: true, url: '/activation_keys/:activationKeyId', permission: 'view_activation_keys', collapsed: true, views: { 'table': { templateUrl: 'activation-keys/views/activation-keys-table-collapsed.html' }, 'action-panel': { controller: 'ActivationKeyDetailsController', templateUrl: 'activation-keys/details/views/activation-key-details.html' } } }) .state('activation-keys.details.info', { url: '/info', permission: 'view_activation_keys', collapsed: true, controller: 'ActivationKeyDetailsInfoController', templateUrl: 'activation-keys/details/views/activation-key-info.html' }) .state('activation-keys.details.products', { url: '/products', permission: 'view_activation_keys', collapsed: true, controller: 'ActivationKeyProductsController', templateUrl: 'activation-keys/details/views/activation-key-products.html' }) .state('activation-keys.details.subscriptions', { abstract: true, collapsed: true, templateUrl: 'activation-keys/details/views/activation-key-subscriptions.html' }) .state('activation-keys.details.subscriptions.list', { url: '/subscriptions', permission: 'view_activation_keys', collapsed: true, controller: 'ActivationKeySubscriptionsController', templateUrl: 'activation-keys/details/views/activation-key-subscriptions-list.html' }) .state('activation-keys.details.subscriptions.add', { url: '/add-subscriptions', permission: 'edit_activation_keys', collapsed: true, controller: 'ActivationKeyAddSubscriptionsController', templateUrl: 'activation-keys/details/views/activation-key-add-subscriptions.html' }); $stateProvider.state('activation-keys.details.host-collections', { abstract: true, collapsed: true, templateUrl: 'activation-keys/details/views/activation-key-host-collections.html' }) .state('activation-keys.details.host-collections.list', { url: '/host-collections', permission: 'view_activation_keys', collapsed: true, controller: 'ActivationKeyHostCollectionsController', templateUrl: 'activation-keys/details/views/activation-key-host-collections-table.html' }) .state('activation-keys.details.host-collections.add', { url: '/host-collections/add', permission: 'edit_activation_keys', collapsed: true, controller: 'ActivationKeyAddHostCollectionsController', templateUrl: 'activation-keys/details/views/activation-key-host-collections-table.html' }) .state('activation-keys.details.associations-content-hosts', { url: '/associations/content-hosts', permission: 'view_activation_keys', collapsed: true, controller: 'ActivationKeyAssociationsController', templateUrl: 'activation-keys/details/views/activation-key-associations-content-hosts.html' }); }]);