'boilerplate' => [
['#tag' => 'afblock-name-household'],
],
+ 'admin_tpl' => '~/afGuiEditor/entityConfig/Contact.html',
];
'boilerplate' => [
['#tag' => 'afblock-name-individual'],
],
+ 'admin_tpl' => '~/afGuiEditor/entityConfig/Contact.html',
];
'boilerplate' => [
['#tag' => 'afblock-name-organization'],
],
+ 'admin_tpl' => '~/afGuiEditor/entityConfig/Contact.html',
];
return afGui.meta.entities[getEntityType()];
};
+ $scope.getAdminTpl = function() {
+ return $scope.getMeta().admin_tpl || '~/afGuiEditor/entityConfig/Generic.html';
+ };
+
$scope.getField = afGui.getField;
$scope.valuesFields = function() {
<fieldset ng-if="!$ctrl.entity.loading && $ctrl.editor.allowEntityConfig">
<legend>{{:: ts('Options') }}</legend>
- <div ng-include="::'~/afGuiEditor/entityConfig/' + $ctrl.entity.type + '.html'"></div>
+ <div ng-include=":: getAdminTpl()"></div>
</fieldset>
+++ /dev/null
-<div ng-include="'~/afGuiEditor/entityConfig/Generic.html'"></div>