/********************************************* * Copyright (c) 2013 AnsibleWorks, Inc. * * Hosts.js * List view object for Users data model. * * */ angular.module('HostListDefinition', []) .value( 'HostList', { name: 'hosts', iterator: 'host', selectTitle: 'Add Host', selectInstructions: 'Click on a row to select it, and click Finished when done. Use the green button to create a new row.', editTitle: 'Hosts', index: true, fields: { name: { key: true, label: 'Name' }, description: { label: 'Description' } }, actions: { add: { icon: 'icon-plus', mode: 'all', // One of: edit, select, all ngClick: 'addHost()', class: 'btn-success', awToolTip: 'Create a new host' } }, fieldActions: { edit: { ngClick: "editHost(\{\{ host.id \}\})", icon: 'icon-edit', class: 'btn-mini', awToolTip: 'View/Edit host' }, delete: { ngClick: "deleteHost(\{\{ host.id \}\},'\{\{ host.name \}\}')", icon: 'icon-remove', class: 'btn-mini btn-danger', awToolTip: 'Delete host' } } });