mirror of
https://github.com/ansible/awx.git
synced 2026-01-27 16:41:29 -03:30
Removed well and index from primary list pages. Job detail page cleanup. Fixed status filter on host summary list. Incresed # rows kept in memory for each list to 100. Showing unreachable host count on the play, mostly to help debugging.
79 lines
2.4 KiB
JavaScript
79 lines
2.4 KiB
JavaScript
/*********************************************
|
|
* Copyright (c) 2014 AnsibleWorks, Inc.
|
|
*
|
|
* Credentials.js
|
|
* List view object for Credential data model.
|
|
*
|
|
* @dict
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
angular.module('CredentialsListDefinition', [])
|
|
.value('CredentialList', {
|
|
|
|
name: 'credentials',
|
|
iterator: 'credential',
|
|
selectTitle: 'Add Credentials',
|
|
editTitle: 'Credentials',
|
|
selectInstructions: "<p>Select existing credentials by clicking each credential or checking the related checkbox. When " +
|
|
"finished, click the blue <em>Select</em> button, located bottom right.</p> <p>Create a brand new credential by clicking " +
|
|
"the green <em>Create New</em> button.</p>",
|
|
index: false,
|
|
hover: true,
|
|
|
|
fields: {
|
|
name: {
|
|
key: true,
|
|
label: 'Name',
|
|
columnClass: 'col-md-3 col-sm-9 col-xs-9',
|
|
modalColumnClass: 'col-md-8'
|
|
},
|
|
description: {
|
|
label: 'Description',
|
|
excludeModal: true,
|
|
columnClass: 'col-md-3 hidden-sm hidden-xs'
|
|
},
|
|
kind: {
|
|
label: 'Type',
|
|
searchType: 'select',
|
|
searchOptions: [], // will be set by Options call to credentials resource
|
|
excludeModal: true,
|
|
nosort: true,
|
|
columnClass: 'col-md-3 hidden-sm hidden-xs'
|
|
}
|
|
},
|
|
|
|
actions: {
|
|
add: {
|
|
mode: 'all', // One of: edit, select, all
|
|
ngClick: 'addCredential()',
|
|
awToolTip: 'Create a new credential'
|
|
},
|
|
stream: {
|
|
ngClick: "showActivity()",
|
|
awToolTip: "View Activity Stream",
|
|
mode: 'edit'
|
|
}
|
|
},
|
|
|
|
fieldActions: {
|
|
edit: {
|
|
ngClick: "editCredential(credential.id)",
|
|
icon: 'fa-edit',
|
|
label: 'Edit',
|
|
"class": 'btn-sm',
|
|
awToolTip: 'Edit credential',
|
|
dataPlacement: 'top'
|
|
},
|
|
|
|
"delete": {
|
|
ngClick: "deleteCredential(credential.id, credential.name)",
|
|
icon: 'fa-trash',
|
|
label: 'Delete',
|
|
"class": 'btn-sm',
|
|
awToolTip: 'Delete credential',
|
|
dataPlacement: 'top'
|
|
}
|
|
}
|
|
}); |