com.megaphonetech.relateent.../templates/CRM/RelateEntities/Expand.tpl

13 lines
373 B
Smarty
Raw Normal View History

2019-09-15 23:01:08 +00:00
{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}