org.agbu.annualgrantbudgets/templates/CRM/Grant/Page/AnnualBudgets.tpl

26 lines
1.0 KiB
Smarty
Raw Normal View History

2018-08-11 16:46:21 +00:00
<div class="crm-content-block crm-block">
2018-08-11 17:51:25 +00:00
<table cellpadding="0" cellspacing="0" border="0" class="row-highlight">
<thead class="sticky">
<th>{ts}Endowement{/ts}</th>
<th>{ts}Annual Budget{/ts}</th>
<th>{ts}Amount Awarded{/ts}</th>
<th>{ts}Amound Remaining{/ts}</th>
</thead>
2018-08-11 18:29:59 +00:00
{crmAPI var='result' entity='GrantBudget' action='getbudget' fiscal_year=$fiscalYear}
2018-08-11 17:51:25 +00:00
{foreach from=$result.values item=row}
2018-08-11 19:37:33 +00:00
{if $row.id}
{assign var='rowId' value=$row.id}
{else}
{capture assign=rowId}{$row.financial_type_id}_{$fiscalYear}{/capture}
{/if}
<tr id="GrantBudget-{$rowId}" class="crm-entity {cycle values="odd-row,even-row"}">
2018-08-11 17:51:25 +00:00
<td>{$row.name}</td>
<td class="crm-editable" data-field="budget" data-type="text">{$row.budget}</td>
<td>{$row.total_amount_granted}</td>
<td>{$row.balance_amount}</td>
</tr>
{/foreach}
</table>
{crmButton p="civicrm" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}
2018-08-11 16:46:21 +00:00
</div>