PM-637 Arreglar el enterprise plugins manager SOLVED
- los paneles estaban mal colocados. - Se cambio el layout de la parte superior para ponerlo como tabs y ademas el tipo de contenedor.
This commit is contained in:
@@ -1008,9 +1008,8 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
var pnlSetup = new Ext.FormPanel({
|
var pnlSetup = new Ext.FormPanel({
|
||||||
frame: true,
|
frame: true,
|
||||||
title: _('ID_SETUP_WEBSERVICES'),
|
|
||||||
height: 178,
|
height: 178,
|
||||||
//bodyStyle: "padding: 5px 5px 5px 5px;",
|
bodyStyle: "padding: 5px 5px 5px 5px;",
|
||||||
disabled: !licensed,
|
disabled: !licensed,
|
||||||
|
|
||||||
items: [
|
items: [
|
||||||
@@ -1054,12 +1053,8 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
var licensePanel = new Ext.FormPanel( {
|
var licensePanel = new Ext.FormPanel( {
|
||||||
frame: true,
|
frame: true,
|
||||||
title: _('ID_YOUR_LICENSE'),
|
|
||||||
labelWidth: 130,
|
labelWidth: 130,
|
||||||
labelAlign: "right",
|
labelAlign: "right",
|
||||||
//width : '50%',
|
|
||||||
anchor: "right 50%",
|
|
||||||
//bodyStyle: "padding: 5px 5px 5px 5px;",
|
|
||||||
defaultType: "displayfield",
|
defaultType: "displayfield",
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
|
|
||||||
@@ -1513,12 +1508,15 @@ Ext.onReady(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// create the Grid Features
|
// create the Grid Features
|
||||||
var addonsFeatureGrid = new Ext.grid.GridPanel({
|
var cmodel = new Ext.grid.ColumnModel({
|
||||||
store: addonsFeaturesStore,
|
viewConfig: {
|
||||||
colspan: 2,
|
forceFit:true,
|
||||||
flex: 1,
|
cls:"x-grid-empty",
|
||||||
padding: 5,
|
emptyText: _('ID_NO_RECORDS_FOUND')
|
||||||
disabled: !licensed,
|
},
|
||||||
|
defaults: {
|
||||||
|
width: 50
|
||||||
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
id : 'icon-column-feature',
|
id : 'icon-column-feature',
|
||||||
@@ -1533,7 +1531,7 @@ Ext.onReady(function() {
|
|||||||
{
|
{
|
||||||
id :'nick-column-feature',
|
id :'nick-column-feature',
|
||||||
header : _('ID_NAME'),
|
header : _('ID_NAME'),
|
||||||
width : 300,
|
width : 150,
|
||||||
sortable : true,
|
sortable : true,
|
||||||
dataIndex: 'nick',
|
dataIndex: 'nick',
|
||||||
renderer: function (val, metadata, record, rowIndex, colIndex, store) {
|
renderer: function (val, metadata, record, rowIndex, colIndex, store) {
|
||||||
@@ -1549,7 +1547,7 @@ Ext.onReady(function() {
|
|||||||
{
|
{
|
||||||
id :'description-column-feature',
|
id :'description-column-feature',
|
||||||
header : _('ID_DESCRIPTION'),
|
header : _('ID_DESCRIPTION'),
|
||||||
width : 400,
|
width : 200,
|
||||||
dataIndex: 'description'
|
dataIndex: 'description'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1569,7 +1567,7 @@ Ext.onReady(function() {
|
|||||||
{
|
{
|
||||||
id : "status-feature",
|
id : "status-feature",
|
||||||
header : _('ID_STATUS'),
|
header : _('ID_STATUS'),
|
||||||
width : 120,
|
width : 60,
|
||||||
sortable : false,
|
sortable : false,
|
||||||
hideable : false,
|
hideable : false,
|
||||||
dataIndex: "status",
|
dataIndex: "status",
|
||||||
@@ -1614,10 +1612,27 @@ Ext.onReady(function() {
|
|||||||
return (str);
|
return (str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
stripeRows: true,
|
});
|
||||||
|
|
||||||
|
var addonsFeatureGrid = new Ext.grid.EditorGridPanel({
|
||||||
|
region: 'center',
|
||||||
|
layout: 'fit',
|
||||||
|
id: 'addonsFeatureGrid',
|
||||||
autoHeight : true,
|
autoHeight : true,
|
||||||
stateId: "grid",
|
autoWidth : true,
|
||||||
|
stateful : true,
|
||||||
|
stateId : 'addonsFeatureGrid',
|
||||||
|
enableColumnResize: true,
|
||||||
|
enableHdMenu: true,
|
||||||
|
frame:false,
|
||||||
|
columnLines: false,
|
||||||
|
viewConfig: {
|
||||||
|
forceFit:true
|
||||||
|
},
|
||||||
|
disabled: !licensed,
|
||||||
|
store: addonsFeaturesStore,
|
||||||
|
cm: cmodel,
|
||||||
tbar:
|
tbar:
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
@@ -1642,6 +1657,9 @@ Ext.onReady(function() {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
|
render: function(){
|
||||||
|
this.loadMask = new Ext.LoadMask(this.body, {msg:_('ID_LOADING_GRID')});
|
||||||
|
},
|
||||||
"cellclick": function (grid, rowIndex, columnIndex, e) {
|
"cellclick": function (grid, rowIndex, columnIndex, e) {
|
||||||
var record = grid.getStore().getAt(rowIndex);
|
var record = grid.getStore().getAt(rowIndex);
|
||||||
var fieldName = grid.getColumnModel().getDataIndex(columnIndex);
|
var fieldName = grid.getColumnModel().getDataIndex(columnIndex);
|
||||||
@@ -1700,10 +1718,7 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
var tabEnterprise = new Ext.TabPanel({
|
var tabEnterprise = new Ext.TabPanel({
|
||||||
activeTab: 0,
|
activeTab: 0,
|
||||||
//width:600,
|
|
||||||
anchor: '100%',
|
|
||||||
height: 370,
|
height: 370,
|
||||||
plain:true,
|
|
||||||
defaults:{autoScroll: true},
|
defaults:{autoScroll: true},
|
||||||
items:[{
|
items:[{
|
||||||
title: _('ID_ENTERPRISE_PLUGINS'),
|
title: _('ID_ENTERPRISE_PLUGINS'),
|
||||||
@@ -1714,28 +1729,28 @@ Ext.onReady(function() {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
var tabSetup= new Ext.TabPanel({
|
||||||
|
activeTab: 0,
|
||||||
|
height: 190,
|
||||||
|
defaults:{autoScroll: true},
|
||||||
|
items:[{
|
||||||
|
title: _('ID_YOUR_LICENSE'),
|
||||||
|
items : licensePanel
|
||||||
|
},{
|
||||||
|
title: _('ID_SETUP_WEBSERVICES'),
|
||||||
|
items : pnlSetup
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
var fullBox = new Ext.Panel({
|
var fullBox = new Ext.Panel({
|
||||||
id:'main-panel-vbox',
|
id:'main-panel-vbox',
|
||||||
baseCls:'x-plain',
|
region:'west',
|
||||||
anchor: "right 100%",
|
margins:'5 0 5 5',
|
||||||
layout:'vbox',
|
items:[ tabSetup, tabEnterprise]
|
||||||
//padding: 10,
|
|
||||||
//defaultMargins: "5",
|
|
||||||
layoutConfig: {
|
|
||||||
align : 'stretch',
|
|
||||||
pack : 'start'
|
|
||||||
},
|
|
||||||
|
|
||||||
defaults: {
|
|
||||||
frame:true
|
|
||||||
},
|
|
||||||
//items:[topBox, addonsGrid]
|
|
||||||
items:[topBox, tabEnterprise]
|
|
||||||
});
|
});
|
||||||
|
|
||||||
///////
|
|
||||||
addonsGrid.on("rowcontextmenu",
|
addonsGrid.on("rowcontextmenu",
|
||||||
function (grid, rowIndex, evt) {
|
function (grid, rowIndex, evt) {
|
||||||
var sm = grid.getSelectionModel();
|
var sm = grid.getSelectionModel();
|
||||||
|
|||||||
Reference in New Issue
Block a user