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:
chouseknecht
2013-06-04 19:12:28 -04:00
parent 4575faf831
commit 2accb94972
10 changed files with 475 additions and 90 deletions

View File

@@ -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 { }. " +

View File

@@ -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',