diff --git a/client/lib/bull.js b/client/lib/bull.js index 6bc34aee7a..a34b6a75f8 100644 --- a/client/lib/bull.js +++ b/client/lib/bull.js @@ -611,6 +611,8 @@ var Bull = Bull || {}; }, this); }, + handleDataBeforeRender: function (data) {}, + _getHtml: function (callback) { this._isBeingRendered = true; this.trigger("render", this); @@ -622,6 +624,7 @@ var Bull = Bull || {}; if (this.model || null) { data.model = this.model; } + this.handleDataBeforeRender(data); this._getTemplate(function (template) { var html = this._renderer.render(template, data); callback(html); diff --git a/client/modules/crm/res/templates/calendar/record/shared-options.tpl b/client/modules/crm/res/templates/calendar/record/shared-options.tpl index 3c6e169cce..271d8183d0 100644 --- a/client/modules/crm/res/templates/calendar/record/shared-options.tpl +++ b/client/modules/crm/res/templates/calendar/record/shared-options.tpl @@ -1,4 +1,4 @@
-
{{{users}}}
+
{{{usersField}}}
\ No newline at end of file diff --git a/client/res/layout-types/list-row-expanded.tpl b/client/res/layout-types/list-row-expanded.tpl index 67874b2031..94249004d1 100644 --- a/client/res/layout-types/list-row-expanded.tpl +++ b/client/res/layout-types/list-row-expanded.tpl @@ -7,7 +7,7 @@ <% _.each(layout.rows, function (row, key) { %>
<% _.each(row, function (defs, key) { %> - <% + <% var tag = 'tag' in defs ? defs.tag : false; if (tag) { print( '<' + tag); diff --git a/client/res/layout-types/list-row.tpl b/client/res/layout-types/list-row.tpl index f8cd2bc4a3..72924cb78f 100644 --- a/client/res/layout-types/list-row.tpl +++ b/client/res/layout-types/list-row.tpl @@ -13,7 +13,7 @@ align = defs.options.defs.align || false; } %> - > + > <% var tag = 'tag' in defs ? defs.tag : false; if (tag) { diff --git a/client/res/layout-types/record.tpl b/client/res/layout-types/record.tpl index f8be8842fd..645db444d7 100644 --- a/client/res/layout-types/record.tpl +++ b/client/res/layout-types/record.tpl @@ -67,15 +67,15 @@ spanClass = 'col-sm-12'; } %> -
- <% if (!cell.noLabel) { %>