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:
@@ -1589,4 +1589,10 @@ td.x-cnotes-label {
|
||||
padding-bottom: 15px;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.title-dashboard-text {
|
||||
margin:5px !important;
|
||||
white-space:pre-wrap !important;
|
||||
display:inline-block;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -66,6 +66,7 @@ Ext.onReady(function() {
|
||||
name: 'DAS_INS_TITLE',
|
||||
fieldLabel: _('ID_TITLE'),
|
||||
allowBlank: false,
|
||||
maxLength: 200,
|
||||
width: 320,
|
||||
listeners: {
|
||||
blur: function() {
|
||||
|
||||
@@ -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'},
|
||||
|
||||
Reference in New Issue
Block a user