mirror of
https://github.com/ansible/awx.git
synced 2026-04-07 02:59:21 -02:30
Hosts side of inventory detail page now working through modal dialogs. Fixed pagination on modal list. Test Add/Edit/Delete host buttons. Only piece left is to fix the host name link, which should bring up the Edit dialog.
This commit is contained in:
@@ -13,7 +13,7 @@ angular.module('HostFormDefinition', [])
|
||||
addTitle: 'Create Host', //Legend in add mode
|
||||
editTitle: '{{ name }}', //Legend in edit mode
|
||||
name: 'host', //Form name attribute
|
||||
well: true, //Wrap the form with TB well
|
||||
well: false, //Wrap the form with TB well
|
||||
|
||||
fields: {
|
||||
name: {
|
||||
@@ -39,7 +39,6 @@ angular.module('HostFormDefinition', [])
|
||||
addRequired: false,
|
||||
editRequird: false,
|
||||
rows: 10,
|
||||
class: 'span12',
|
||||
default: "\{\}",
|
||||
awPopOver: "<p>Enter variables as JSON. Both the key and value must be wrapped in double quotes. " +
|
||||
"Separate variables with commas, and wrap the entire string with { }. " +
|
||||
|
||||
@@ -76,17 +76,10 @@ angular.module('InventoryFormDefinition', [])
|
||||
iterator: 'host',
|
||||
actions: {
|
||||
add: {
|
||||
ngClick: "add('hosts')",
|
||||
ngClick: "addHost()",
|
||||
icon: 'icon-plus',
|
||||
label: 'Create Host',
|
||||
awToolTip: 'Create a new host',
|
||||
ngHide: 'createButtonShow == false'
|
||||
},
|
||||
select: {
|
||||
ngClick: "select('hosts')",
|
||||
icon: 'icon-th-large',
|
||||
label: 'Select Existing Host',
|
||||
awToolTip: 'Select an existing host',
|
||||
label: 'Add Host',
|
||||
awToolTip: 'Add a host',
|
||||
ngHide: 'createButtonShow == false'
|
||||
}
|
||||
},
|
||||
@@ -104,14 +97,14 @@ angular.module('InventoryFormDefinition', [])
|
||||
|
||||
fieldActions: {
|
||||
edit: {
|
||||
ngClick: "edit('hosts', \{\{ host.id \}\}, '\{\{ host.name \}\}')",
|
||||
ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')",
|
||||
icon: 'icon-edit',
|
||||
label: 'Edit',
|
||||
class: 'btn-success',
|
||||
awToolTip: 'Edit host'
|
||||
},
|
||||
delete: {
|
||||
ngClick: "delete('hosts', \{\{ host.id \}\}, '\{\{ host.name \}\}', 'hosts')",
|
||||
ngClick: "deleteHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')",
|
||||
icon: 'icon-remove',
|
||||
label: 'Delete',
|
||||
class: 'btn-danger',
|
||||
|
||||
Reference in New Issue
Block a user