Latest UI inventory changes

This commit is contained in:
chouseknecht 2013-05-14 09:51:26 -04:00
parent 2612ebd792
commit 55f44b86f1
2 changed files with 10 additions and 9 deletions

View File

@ -162,9 +162,9 @@ function GroupsAdd ($scope, $rootScope, $compile, $location, $log, $routeParams,
data[fld] = scope[fld];
}
if ($routeParams.group_id) {
data['inventory'] = $routeParams.inventory_id;
}
//if ($routeParams.group_id) {
// data['inventory'] = $routeParams.inventory_id;
//}
Rest.post(data)
.success( function(data, status, headers, config) {

View File

@ -27,13 +27,14 @@ angular.module('GroupFormDefinition', [])
type: 'text',
addRequired: false,
editRequired: false
},
inventory: {
label: 'Inventory',
type: 'hidden',
includeOnEdit: true,
includeOnAdd: true
}
// ,
// inventory: {
// label: 'Inventory',
// type: 'hidden',
// includeOnEdit: true,
// includeOnAdd: true
// }
},
buttons: { //for now always generates <button> tags