Introducing the infrastructure for colleciton of the subnodes listing,

creation, and editing within the properties panel infrastructure.

We do use the backgrid.js for listing the subnode collection, and for
editing/creating new object for the subnode, we do use the same
infrastructure using the backform.
This commit is contained in:
Khushboo Vashi
2015-10-28 22:36:09 +05:30
committed by Ashesh Vashi
parent c53b57a013
commit c1503ade47
16 changed files with 4530 additions and 644 deletions

View File

@@ -32,8 +32,13 @@ function($, _, pgAdmin, Backbone) {
name: null
},
schema: [
{id: 'id', label: 'ID', type: 'int', group: null, mode: ['properties']},
{id: 'name', label:'Name', type: 'text', group: null, mode: ['properties', 'edit', 'create']}
{
id: 'id', label: 'ID', type: 'int', group: null,
mode: ['properties']
},{
id: 'name', label:'Name', type: 'text', group: null,
mode: ['properties', 'edit', 'create']
}
],
validate: function(attrs, options) {
if (!this.isNew() && 'id' in this.changed) {