Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
2a73d3b0 | 5 | | Copyright CiviCRM LLC (c) 2004-2017 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {if $context EQ 'Search'} | |
27 | {include file="CRM/common/pager.tpl" location="top"} | |
28 | {/if} | |
29 | ||
30 | {strip} | |
16850d34 | 31 | <table class="selector row-highlight"> |
6a488035 TO |
32 | <thead class="sticky"> |
33 | <tr class="columnheader"> | |
34 | {if ! $single and $context eq 'Search' } | |
472eb698 | 35 | <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th> |
6a488035 TO |
36 | {/if} |
37 | {foreach from=$columnHeaders item=header} | |
38 | <th scope="col"> | |
39 | {if $header.sort} | |
40 | {assign var='key' value=$header.sort} | |
41 | {$sort->_response.$key.link} | |
42 | {else} | |
43 | {$header.name} | |
44 | {/if} | |
45 | </th> | |
46 | {/foreach} | |
47 | </tr> | |
48 | </thead> | |
49 | ||
50 | {counter start=0 skip=1 print=false} | |
472eb698 | 51 | {foreach from=$rows item=row} |
6a488035 TO |
52 | <tr id='crm-grant_{$row.grant_id}' class="{cycle values="odd-row,even-row"} crm-grant crm-grant_status-{$row.grant_status_id}"> |
53 | ||
472eb698 | 54 | {if !$single } |
55 | {if $context eq 'Search' } | |
6a488035 | 56 | {assign var=cbName value=$row.checkbox} |
472eb698 | 57 | <td>{$form.$cbName.html}</td> |
58 | {/if} | |
59 | <td>{$row.contact_type}</td> | |
60 | <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a></td> | |
6a488035 TO |
61 | {/if} |
62 | <td class="crm-grant-grant_status">{$row.grant_status}</td> | |
63 | <td class="crm-grant-grant_type">{$row.grant_type}</td> | |
64 | <td class="right crm-grant-grant_amount_total">{$row.grant_amount_total|crmMoney}</td> | |
65 | <td class="right crm-grant-grant_amount_granted">{$row.grant_amount_granted|crmMoney}</td> | |
66 | <td class="right crm-grant-grant_application_received_date">{$row.grant_application_received_date|truncate:10:''|crmDate}</td> | |
67 | <td class="crm-grant-grant_report_received">{if $row.grant_report_received}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td> | |
68 | <td class="right crm-grant-grant_money_transfer_date">{$row.grant_money_transfer_date|truncate:10:''|crmDate}</td> | |
69 | <td>{$row.action|replace:'xx':$row.grant_id}</td> | |
70 | </tr> | |
71 | {/foreach} | |
72 | ||
73 | {if ($context EQ 'dashboard') AND $pager->_totalItems GT $limit} | |
74 | <tr class="even-row"> | |
75 | <td colspan="9"><a href="{crmURL p='civicrm/grant/search' q='reset=1&force=1'}">» {ts}List more Grants{/ts}...</a></td></tr> | |
76 | </tr> | |
77 | {/if} | |
78 | </table> | |
79 | {/strip} | |
80 | ||
d664f648 | 81 | |
6a488035 TO |
82 | |
83 | {if $context EQ 'Search'} | |
84 | {include file="CRM/common/pager.tpl" location="bottom"} | |
85 | {/if} |