mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 08:57:35 -02:30
cleanup users
This commit is contained in:
@@ -124,10 +124,8 @@ var tower = angular.module('Tower', [
|
|||||||
//'templates',
|
//'templates',
|
||||||
'Utilities',
|
'Utilities',
|
||||||
'OrganizationFormDefinition',
|
'OrganizationFormDefinition',
|
||||||
'UserFormDefinition',
|
|
||||||
'OrganizationListDefinition',
|
'OrganizationListDefinition',
|
||||||
'templates',
|
'templates',
|
||||||
'UserListDefinition',
|
|
||||||
'PromptDialog',
|
'PromptDialog',
|
||||||
'AWDirectives',
|
'AWDirectives',
|
||||||
'InventoriesListDefinition',
|
'InventoriesListDefinition',
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import JobVarsPrompt from "./forms/JobVarsPrompt";
|
|||||||
import LogViewerOptions from "./forms/LogViewerOptions";
|
import LogViewerOptions from "./forms/LogViewerOptions";
|
||||||
import LogViewerStatus from "./forms/LogViewerStatus";
|
import LogViewerStatus from "./forms/LogViewerStatus";
|
||||||
import Organizations from "./forms/Organizations";
|
import Organizations from "./forms/Organizations";
|
||||||
import Users from "./forms/Users";
|
|
||||||
import WorkflowMaker from "./forms/WorkflowMaker";
|
import WorkflowMaker from "./forms/WorkflowMaker";
|
||||||
import Workflows from "./forms/Workflows";
|
import Workflows from "./forms/Workflows";
|
||||||
|
|
||||||
@@ -38,7 +37,6 @@ export
|
|||||||
LogViewerOptions,
|
LogViewerOptions,
|
||||||
LogViewerStatus,
|
LogViewerStatus,
|
||||||
Organizations,
|
Organizations,
|
||||||
Users,
|
|
||||||
WorkflowMaker,
|
WorkflowMaker,
|
||||||
Workflows
|
Workflows
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import ScheduledJobs from "./lists/ScheduledJobs";
|
|||||||
import Schedules from "./lists/Schedules";
|
import Schedules from "./lists/Schedules";
|
||||||
import Streams from "./lists/Streams";
|
import Streams from "./lists/Streams";
|
||||||
import Templates from "./lists/Templates";
|
import Templates from "./lists/Templates";
|
||||||
import Users from "./lists/Users";
|
|
||||||
|
|
||||||
export
|
export
|
||||||
{ CompletedJobs,
|
{ CompletedJobs,
|
||||||
@@ -42,6 +41,5 @@ export
|
|||||||
ScheduledJobs,
|
ScheduledJobs,
|
||||||
Schedules,
|
Schedules,
|
||||||
Streams,
|
Streams,
|
||||||
Templates,
|
Templates
|
||||||
Users
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,13 +12,12 @@ const user_type_options = [
|
|||||||
{ type: 'system_administrator', label: N_('System Administrator') },
|
{ type: 'system_administrator', label: N_('System Administrator') },
|
||||||
];
|
];
|
||||||
|
|
||||||
export default ['$scope', '$rootScope', '$stateParams', 'UserForm', 'GenerateForm',
|
export default ['$scope', '$rootScope', 'UserForm', 'GenerateForm', 'Rest',
|
||||||
'Rest', 'Alert', 'ProcessErrors', 'ReturnToCaller', 'ClearScope', 'GetBasePath',
|
'Alert', 'ProcessErrors', 'ReturnToCaller', 'ClearScope', 'GetBasePath',
|
||||||
'Wait', 'CreateSelect2', '$state', '$location', 'i18n',
|
'Wait', 'CreateSelect2', '$state', '$location', 'i18n',
|
||||||
function($scope, $rootScope, $stateParams, UserForm,
|
function($scope, $rootScope, UserForm, GenerateForm, Rest, Alert,
|
||||||
GenerateForm, Rest, Alert, ProcessErrors, ReturnToCaller, ClearScope,
|
ProcessErrors, ReturnToCaller, ClearScope, GetBasePath, Wait, CreateSelect2,
|
||||||
GetBasePath, Wait, CreateSelect2, $state, $location, i18n) {
|
$state, $location, i18n) {
|
||||||
|
|
||||||
ClearScope();
|
ClearScope();
|
||||||
|
|
||||||
var defaultUrl = GetBasePath('organizations'),
|
var defaultUrl = GetBasePath('organizations'),
|
||||||
|
|||||||
@@ -12,11 +12,10 @@ const user_type_options = [
|
|||||||
{ type: 'system_administrator', label: N_('System Administrator') },
|
{ type: 'system_administrator', label: N_('System Administrator') },
|
||||||
];
|
];
|
||||||
|
|
||||||
export default ['$scope', '$rootScope', '$location',
|
export default ['$scope', '$rootScope', '$stateParams', 'UserForm', 'Rest',
|
||||||
'$stateParams', 'UserForm', 'Rest', 'ProcessErrors', 'ClearScope', 'GetBasePath',
|
'ProcessErrors', 'ClearScope', 'GetBasePath', 'Wait', 'CreateSelect2',
|
||||||
'Wait', 'CreateSelect2', '$state', 'i18n',
|
'$state', 'i18n',
|
||||||
function($scope, $rootScope, $location,
|
function($scope, $rootScope, $stateParams, UserForm, Rest, ProcessErrors,
|
||||||
$stateParams, UserForm, Rest, ProcessErrors,
|
|
||||||
ClearScope, GetBasePath, Wait, CreateSelect2, $state, i18n) {
|
ClearScope, GetBasePath, Wait, CreateSelect2, $state, i18n) {
|
||||||
|
|
||||||
for (var i = 0; i < user_type_options.length; i++) {
|
for (var i = 0; i < user_type_options.length; i++) {
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ const user_type_options = [
|
|||||||
{ type: 'system_administrator', label: N_('System Administrator') },
|
{ type: 'system_administrator', label: N_('System Administrator') },
|
||||||
];
|
];
|
||||||
|
|
||||||
export default ['$scope', '$rootScope', '$stateParams',
|
export default ['$scope', '$rootScope', 'Rest', 'UserList', 'Prompt',
|
||||||
'Rest', 'Alert', 'UserList', 'Prompt', 'ClearScope', 'ProcessErrors', 'GetBasePath',
|
'ClearScope', 'ProcessErrors', 'GetBasePath', 'Wait', '$state', '$filter',
|
||||||
'Wait', '$state', '$filter', 'rbacUiControlService', 'Dataset', 'i18n',
|
'rbacUiControlService', 'Dataset', 'i18n',
|
||||||
function($scope, $rootScope, $stateParams,
|
function($scope, $rootScope, Rest, UserList, Prompt, ClearScope,
|
||||||
Rest, Alert, UserList, Prompt, ClearScope, ProcessErrors, GetBasePath,
|
ProcessErrors, GetBasePath, Wait, $state, $filter, rbacUiControlService,
|
||||||
Wait, $state, $filter, rbacUiControlService, Dataset, i18n) {
|
Dataset, i18n) {
|
||||||
|
|
||||||
for (var i = 0; i < user_type_options.length; i++) {
|
for (var i = 0; i < user_type_options.length; i++) {
|
||||||
user_type_options[i].label = i18n._(user_type_options[i].label);
|
user_type_options[i].label = i18n._(user_type_options[i].label);
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
import UsersList from './list/users-list.controller';
|
import UsersList from './list/users-list.controller';
|
||||||
import UsersAdd from './add/users-add.controller';
|
import UsersAdd from './add/users-add.controller';
|
||||||
import UsersEdit from './edit/users-edit.controller';
|
import UsersEdit from './edit/users-edit.controller';
|
||||||
|
import UserForm from './users.form';
|
||||||
|
import UserList from './users.list';
|
||||||
import { N_ } from '../i18n';
|
import { N_ } from '../i18n';
|
||||||
|
|
||||||
export default
|
export default
|
||||||
@@ -14,6 +16,8 @@ angular.module('Users', [])
|
|||||||
.controller('UsersList', UsersList)
|
.controller('UsersList', UsersList)
|
||||||
.controller('UsersAdd', UsersAdd)
|
.controller('UsersAdd', UsersAdd)
|
||||||
.controller('UsersEdit', UsersEdit)
|
.controller('UsersEdit', UsersEdit)
|
||||||
|
.factory('UserForm', UserForm)
|
||||||
|
.factory('UserList', UserList)
|
||||||
.config(['$stateProvider', 'stateDefinitionsProvider',
|
.config(['$stateProvider', 'stateDefinitionsProvider',
|
||||||
function($stateProvider, stateDefinitionsProvider) {
|
function($stateProvider, stateDefinitionsProvider) {
|
||||||
let stateDefinitions = stateDefinitionsProvider.$get();
|
let stateDefinitions = stateDefinitionsProvider.$get();
|
||||||
|
|||||||
@@ -10,9 +10,7 @@
|
|||||||
* @description This form is for adding/editing users
|
* @description This form is for adding/editing users
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default
|
export default ['i18n', function(i18n) {
|
||||||
angular.module('UserFormDefinition', [])
|
|
||||||
.factory('UserForm', ['i18n', function(i18n) {
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
addTitle: i18n._('NEW USER'),
|
addTitle: i18n._('NEW USER'),
|
||||||
@@ -229,4 +227,4 @@ export default
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};}]);
|
};}];
|
||||||
@@ -5,9 +5,7 @@
|
|||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
|
|
||||||
export default
|
export default ['i18n', function(i18n) {
|
||||||
angular.module('UserListDefinition', [])
|
|
||||||
.factory('UserList', ['i18n', function(i18n) {
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
name: 'users',
|
name: 'users',
|
||||||
@@ -87,4 +85,4 @@ export default
|
|||||||
ngShow: 'user.summary_fields.user_capabilities.delete'
|
ngShow: 'user.summary_fields.user_capabilities.delete'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};}]);
|
};}];
|
||||||
Reference in New Issue
Block a user