BUG-14033 No existe validacion para el titulo de dashboards.

Se agrego la validacion de longitud y la grilla del listado de dashboards.
This commit is contained in:
norahmollo
2014-07-18 14:58:07 -04:00
parent 1bf601d133
commit 3481b35af3
4 changed files with 19 additions and 1 deletions

View File

@@ -1590,3 +1590,9 @@ td.x-cnotes-label {
padding-left: 3px;
padding-right: 3px;
}
.title-dashboard-text {
margin:5px !important;
white-space:pre-wrap !important;
display:inline-block;
}

View File

@@ -1673,3 +1673,9 @@ td.x-cnotes-label {
#ext-comp-1010.xtb-text {
font-size: 9px;
}
.title-dashboard-text {
margin:5px !important;
white-space:pre-wrap !important;
display:inline-block;
}

View File

@@ -66,6 +66,7 @@ Ext.onReady(function() {
name: 'DAS_INS_TITLE',
fieldLabel: _('ID_TITLE'),
allowBlank: false,
maxLength: 200,
width: 320,
listeners: {
blur: function() {

View File

@@ -185,6 +185,11 @@ Ext.onReady(function(){
}
});
function formatLineWrap(value){
str = '<div class="title-dashboard-text">'+value+'</div>';
return str;
}
cmodel = new Ext.grid.ColumnModel({
defaults: {
width: 50,
@@ -192,7 +197,7 @@ Ext.onReady(function(){
},
columns: [
{id:'DAS_INS_UID', dataIndex: 'DAS_INS_UID', hidden:true, hideable:false},
{header: _("ID_TITLE"), dataIndex: "DAS_INS_TITLE", width: 150, hidden: false, align: "left"},
{header: _("ID_TITLE"), dataIndex: "DAS_INS_TITLE", width: 150, hidden: false, align: "left", renderer : formatLineWrap},
{header: _("ID_DASHLET"), dataIndex: "DAS_TITLE", width: 200, hidden: false, align: "left"},
{header: _('ID_VERSION'), dataIndex: 'DAS_VERSION', width: 60, hidden: false, align: 'center'},
{header: _('ID_ASSIGNED_TO'), dataIndex: 'DAS_INS_OWNER_TITLE', width: 200, hidden: false, align: 'center'},