Skip to content

Commit 906e7ad

Browse files
author
Olivier Giulieri
committed
Added "labelcharts" attribute to override "label".
… in field definition for the chart view.
1 parent 8348ef6 commit 906e7ad

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

js/many-charts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ Evol.ViewMany.Charts = Evol.ViewMany.extend({
7979
}
8080
var entityName=EvoUI.capitalize(uiModel.entities);
8181
if(f.type===fTypes.lov){
82-
h.push(EvoUI.Charts.Pie(i18n.getLabel('charts.aByB',entityName,f.label), data, labels, style, sizes));
82+
h.push(EvoUI.Charts.Pie(i18n.getLabel('charts.aByB', entityName, f.labelcharts || f.label), data, labels, style, sizes));
8383
}else{
84-
h.push(EvoUI.Charts.Bars(i18n.getLabel('charts.aB',entityName,f.label), data, labels, style, sizes));
84+
h.push(EvoUI.Charts.Bars(i18n.getLabel('charts.aB', entityName, f.labelcharts || f.label), data, labels, style, sizes));
8585
}
8686
});
8787
}else{

js/ui-models/apps/winecellar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,9 @@ var winecellar_ui = {
335335
id:'drink_from',
336336
type: 'integer',
337337
label: 'Drink from (year)',
338-
placeholder: '2013',
339338
labellist: 'Drink',
339+
labelcharts: 'Drink from',
340+
placeholder: '2012',
340341
maxlength: 10,
341342
viewmany: true,
342343
width: 50,
@@ -347,6 +348,7 @@ var winecellar_ui = {
347348
id:'drink_to',
348349
type: 'integer',
349350
label: 'to',
351+
labelcharts: 'Drink to',
350352
maxlength: 4,
351353
width: 50,
352354
min: 1900,
@@ -366,6 +368,7 @@ var winecellar_ui = {
366368
id:'peak_to',
367369
type: 'integer',
368370
label: 'to',
371+
labelcharts: 'Peak to',
369372
maxlength: 4,
370373
width: 50,
371374
min: 1900,

0 commit comments

Comments
 (0)