/********************************************* * Copyright (c) 2014 AnsibleWorks, Inc. * * InventoryHosts.js * Form definition for Hosts model * * */ angular.module('InventoryHostsFormDefinition', []) .value( 'InventoryHostsForm', { type: 'hostsview', title: "groupTitle", editTitle: 'Hosts', iterator: 'host', fields: { name: { key: true, label: 'Name', ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')" }, active_failures: { label: 'Job Status', ngHref: "\{\{ host.activeFailuresLink \}\}", awToolTip: "\{\{ host.badgeToolTip \}\}", dataPlacement: 'top', badgeNgHref: '\{\{ host.activeFailuresLink \}\}', badgeIcon: "\{\{ 'icon-failures-' + host.has_active_failures \}\}", badgePlacement: 'left', badgeToolTip: "\{\{ host.badgeToolTip \}\}", badgeTipPlacement: 'top', searchable: false, nosort: true }, enabled_flag: { label: 'Enabled', badgeIcon: "\{\{ 'icon-enabled-' + host.enabled \}\}", badgePlacement: 'left', badgeToolTip: "\{\{ host.enabledToolTip \}\}", badgeTipPlacement: "top", badgeTipWatch: "host.enabledToolTip", ngClick: "toggle_host_enabled(\{\{ host.id \}\}, \{\{ host.has_inventory_sources \}\})", searchable: false, showValue: false }, groups: { label: 'Groups', searchable: true, sourceModel: 'groups', sourceField: 'name', nosort: true }, enabled: { label: 'Disabled?', searchSingleValue: true, searchType: 'boolean', searchValue: 'false', searchOnly: true }, has_active_failures: { label: 'Has failed jobs?', searchSingleValue: true, searchType: 'boolean', searchValue: 'true', searchOnly: true }, has_inventory_sources: { label: 'Has external source?', searchSingleValue: true, searchType: 'boolean', searchValue: 'true', searchOnly: true } }, actions: { add: { label: 'Copy', ngClick: "addHost()", ngHide: "hostAddHide", awToolTip: "Copy an existing host to the selected group", dataPlacement: 'top', 'class': 'btn-xs btn-success', icon: 'icon-check' }, create: { label: 'Create New', ngClick: 'createHost()', ngHide: 'hostCreateHide', awToolTip: 'Create a new host and add it to the selected group', dataPlacement: 'top', 'class': 'btn-xs btn-success', icon: 'icon-plus' }, help: { dataPlacement: 'top', icon: "icon-question-sign", mode: 'all', 'class': 'btn-xs btn-info btn-help', awToolTip: "
Need help getting started?
" + "Click here for help with this page