Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {if $context EQ 'Search'} | |
11 | {include file="CRM/common/pager.tpl" location="top"} | |
12 | {/if} | |
13 | ||
14 | {strip} | |
16850d34 | 15 | <table class="selector row-highlight"> |
6a488035 | 16 | <thead class="sticky"> |
b0c14036 | 17 | <tr> |
6a488035 | 18 | {if ! $single and $context eq 'Search' } |
472eb698 | 19 | <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th> |
6a488035 TO |
20 | {/if} |
21 | {foreach from=$columnHeaders item=header} | |
22 | <th scope="col"> | |
23 | {if $header.sort} | |
24 | {assign var='key' value=$header.sort} | |
25 | {$sort->_response.$key.link} | |
26 | {else} | |
27 | {$header.name} | |
28 | {/if} | |
29 | </th> | |
30 | {/foreach} | |
31 | </tr> | |
32 | </thead> | |
33 | ||
34 | {counter start=0 skip=1 print=false} | |
472eb698 | 35 | {foreach from=$rows item=row} |
6a488035 TO |
36 | <tr id='crm-grant_{$row.grant_id}' class="{cycle values="odd-row,even-row"} crm-grant crm-grant_status-{$row.grant_status_id}"> |
37 | ||
472eb698 | 38 | {if !$single } |
39 | {if $context eq 'Search' } | |
6a488035 | 40 | {assign var=cbName value=$row.checkbox} |
472eb698 | 41 | <td>{$form.$cbName.html}</td> |
42 | {/if} | |
43 | <td>{$row.contact_type}</td> | |
44 | <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a></td> | |
6a488035 TO |
45 | {/if} |
46 | <td class="crm-grant-grant_status">{$row.grant_status}</td> | |
47 | <td class="crm-grant-grant_type">{$row.grant_type}</td> | |
48 | <td class="right crm-grant-grant_amount_total">{$row.grant_amount_total|crmMoney}</td> | |
49 | <td class="right crm-grant-grant_amount_granted">{$row.grant_amount_granted|crmMoney}</td> | |
50 | <td class="right crm-grant-grant_application_received_date">{$row.grant_application_received_date|truncate:10:''|crmDate}</td> | |
51 | <td class="crm-grant-grant_report_received">{if $row.grant_report_received}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td> | |
52 | <td class="right crm-grant-grant_money_transfer_date">{$row.grant_money_transfer_date|truncate:10:''|crmDate}</td> | |
53 | <td>{$row.action|replace:'xx':$row.grant_id}</td> | |
54 | </tr> | |
55 | {/foreach} | |
56 | ||
57 | {if ($context EQ 'dashboard') AND $pager->_totalItems GT $limit} | |
58 | <tr class="even-row"> | |
13a3d214 | 59 | <td colspan="9"><a href="{crmURL p='civicrm/grant/search' q='reset=1&force=1'}"><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {ts}List more Grants{/ts}...</a></td></tr> |
6a488035 TO |
60 | </tr> |
61 | {/if} | |
62 | </table> | |
63 | {/strip} | |
64 | ||
d664f648 | 65 | |
6a488035 TO |
66 | |
67 | {if $context EQ 'Search'} | |
68 | {include file="CRM/common/pager.tpl" location="bottom"} | |
69 | {/if} |