Added jsTree to show groups under Inventory/Edit

This commit is contained in:
chouseknecht
2013-05-07 11:49:33 -04:00
parent ced96a1bb3
commit 3c90f91453
78 changed files with 12964 additions and 99 deletions

View File

@@ -98,42 +98,11 @@ angular.module('InventoryFormDefinition', [])
}
},
groups: {
type: 'collection',
groups: {
type: 'tree',
title: 'Groups',
iterator: 'group',
open: false,
actions: {
add: {
ngClick: "add('groups')",
icon: 'icon-plus',
awToolTip: 'Create a new group'
},
},
fields: {
name: {
key: true,
label: 'Name'
},
description: {
label: 'Description'
}
},
fieldActions: {
edit: {
ngClick: "edit('groups', \{\{ group.id \}\}, '\{\{ group.name \}\}')",
icon: 'icon-edit'
},
delete: {
ngClick: "delete('groups', \{\{ group.id \}\}, '\{\{ group.name \}\}', 'groups')",
icon: 'icon-remove',
class: 'btn-danger'
}
}
}
open: true
}
}
}); //InventoryForm