/********************************************* * Copyright (c) 2013 AnsibleWorks, Inc. * * Projects.js * List view object for Project data model. * * */ angular.module('ProjectsListDefinition', []) .value( 'ProjectList', { name: 'projects', iterator: 'project', selectTitle: 'Add Project', editTitle: '{{ name }}', selectInstructions: 'Click on a row to select it, and click Finished when done. Use the green button to create a new row.', index: true, fields: { name: { key: true, label: 'Name' }, description: { label: 'Descriptions' } }, actions: { add: { icon: 'icon-plus', mode: 'all', // One of: edit, select, all ngClick: 'addProject()', class: 'btn-success', awToolTip: 'Create a new project' } }, fieldActions: { edit: { ngClick: "editProject(\{\{ project.id \}\})", icon: 'icon-edit', class: 'btn-mini', awToolTip: 'View/edit project' }, delete: { ngClick: "deleteProject(\{\{ project.id \}\},'\{\{ project.name \}\}')", icon: 'icon-remove', class: 'btn-mini btn-danger', awToolTip: 'Delete project' } } });