com.megaphonetech.relateent.../templates/CRM/RelateEntities/Expand.tpl
2019-09-16 00:02:17 +01:00

13 lines
373 B
Smarty

{crmScript file='js/crm.expandRow.js'}
{literal}
<script type="text/javascript">
CRM.$(function($) {
let rows = {/literal}{$rows|@json_encode}{literal};
$('table tr th:first').before('<th></th>');
$.each(rows, function(index, value) {
$('table tr#financial_type-' + value['id'] + ' td:first').before(value['expand']);
});
});
</script>
{/literal}