record list dashlet changes

This commit is contained in:
yuri
2017-04-11 16:25:00 +03:00
parent 024aeb6d01
commit e48043c2e8
9 changed files with 53 additions and 3 deletions
@@ -15,6 +15,10 @@
"displayRecords": {
"type": "enumInt",
"options": [3,4,5,10,15,20,30]
},
"expandedLayout": {
"type": "base",
"view": "views/dashlets/fields/records/expanded-layout"
}
},
"defaults": {
@@ -69,6 +73,10 @@
[
{"name": "displayRecords"},
{"name": "autorefreshInterval"}
],
[
{"name": "expandedLayout"},
false
]
]
}
@@ -15,6 +15,10 @@
"displayRecords": {
"type": "enumInt",
"options": [3,4,5,10,15]
},
"expandedLayout": {
"type": "base",
"view": "views/dashlets/fields/records/expanded-layout"
}
},
"defaults": {
@@ -61,6 +65,10 @@
[
{"name": "displayRecords"},
{"name": "autorefreshInterval"}
],
[
{"name": "expandedLayout"},
false
]
]
}
@@ -15,6 +15,10 @@
"displayRecords": {
"type": "enumInt",
"options": [3,4,5,10,15,20,30]
},
"expandedLayout": {
"type": "base",
"view": "views/dashlets/fields/records/expanded-layout"
}
},
"defaults": {
@@ -58,6 +62,10 @@
[
{"name": "displayRecords"},
{"name": "autorefreshInterval"}
],
[
{"name": "expandedLayout"},
false
]
]
}
@@ -15,6 +15,10 @@
"displayRecords": {
"type": "enumInt",
"options": [3,4,5,10,15,20,30]
},
"expandedLayout": {
"type": "base",
"view": "views/dashlets/fields/records/expanded-layout"
}
},
"defaults": {
@@ -69,6 +73,10 @@
[
{"name": "displayRecords"},
{"name": "autorefreshInterval"}
],
[
{"name": "expandedLayout"},
false
]
]
}
@@ -15,6 +15,10 @@
"displayRecords": {
"type": "enumInt",
"options": [3,4,5,10,15,20,30]
},
"expandedLayout": {
"type": "base",
"view": "views/dashlets/fields/records/expanded-layout"
}
},
"defaults": {
@@ -55,6 +59,10 @@
[
{"name": "displayRecords"},
{"name": "autorefreshInterval"}
],
[
{"name": "expandedLayout"},
false
]
]
}
@@ -15,6 +15,10 @@
"displayRecords": {
"type": "enumInt",
"options": [3,4,5,10,15,20,30]
},
"expandedLayout": {
"type": "base",
"view": "views/dashlets/fields/records/expanded-layout"
}
},
"defaults": {
@@ -55,6 +59,9 @@
[
{"name": "displayRecords"},
{"name": "autorefreshInterval"}
],
[
{"name": "expandedLayout", "fullWidth": true}
]
]
}
@@ -71,7 +71,8 @@
{"name": "autorefreshInterval"}
],
[
{"name": "expandedLayout", "fullWidth": true}
{"name": "expandedLayout"},
false
]
]
}
@@ -98,7 +98,7 @@ Espo.define('views/dashlets/fields/records/expanded-layout', 'views/fields/base'
},
getFieldDataList: function () {
var scope = this.model.get('entityType');
var scope = this.model.get('entityType') || this.getMetadata().get(['dashlets', this.model.dashletName, 'entityType']);
if (!scope) return [];
var fields = this.getMetadata().get(['entityDefs', scope, 'fields']) || {};
+3 -1
View File
@@ -102,6 +102,8 @@ Espo.define('views/dashlets/options/base', ['views/modal', 'views/record/detail'
};
model.set(this.optionsData);
model.dashletName = this.name;
this.createView('record', 'views/record/detail-middle', {
model: model,
recordHelper: this.recordHelper,
@@ -113,7 +115,7 @@ Espo.define('views/dashlets/options/base', ['views/modal', 'views/record/detail'
layoutData: {
model: model,
columnCount: 2,
},
}
});
this.header = this.getLanguage().translate('Dashlet Options') + ': ' + this.getLanguage().translate(this.name, 'dashlets');