Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
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 | {* CiviGrant DashBoard (launch page) *} | |
27 | <div id="help" class="solid-border-bottom"> | |
28 | {capture assign=findContactURL}{crmURL p="civicrm/contact/search/basic" q="reset=1"}{/capture} | |
29 | <p>{ts 1=$findContactURL }CiviGrant allows you to input and track grants to Organizations, Individuals or Households. The grantee must first be entered as a contact in CiviCRM. Use <a href='%1'>Find Contacts</a> to see if there's already a record for the grantee. Once you've located or created the contact record, click <strong>View</strong> to go to their summary page, select the <strong>Grants</strong> tab and click <strong>New Grant</strong>.{/ts} | |
30 | </p> | |
31 | </div> | |
32 | <h3>{ts}Grants Summary{/ts}</h3> | |
33 | <div class="description"> | |
34 | {capture assign=findGrantsURL}{crmURL p="civicrm/grant/search" q="reset=1"}{/capture} | |
35 | <p>{ts 1=$findGrantsURL}This table provides a summary of <strong>Grant Totals</strong>, and includes shortcuts to view the Grant details for these commonly used search periods. Click the Grant Status to see a list of Contacts for that grant status. To run your own customized searches - click <a href='%1'>Find Grants</a>. You can search by Contact Name, Amount, Grant type and a variety of other criteria.{/ts} | |
36 | </p> | |
37 | </div> | |
38 | ||
39 | {if $grantSummary.total_grants} | |
40 | You have {$grantSummary.total_grants} grant(s) registered in your database. | |
41 | <table class="report"> | |
42 | <tr class="columnheader-dark"> | |
43 | <th scope="col">{ts}Grant status{/ts}</th> | |
44 | <th scope="col">{ts}Number of grants{/ts}</th> | |
45 | </tr> | |
46 | ||
47 | {foreach from=$grantSummary.per_status item=status key=id} | |
48 | <tr> | |
49 | <td><a href="{crmURL p="civicrm/grant/search" q="reset=1&status=`$id`&force=1"}">{$status.label}</a></td> | |
50 | <td><a href="{crmURL p="civicrm/grant/search" q="reset=1&status=`$id`&force=1"}">{$status.total}</a></td> | |
51 | </tr> | |
52 | {/foreach} | |
53 | <tr class="columnfooter"> | |
54 | <td>{ts}TOTAL{/ts}:</td> | |
55 | <td>{$grantSummary.total_grants}</td> | |
56 | </tr> | |
57 | </table> | |
58 | {else} | |
59 | {ts}You have no Grants registered in your database.{/ts} | |
60 | ||
61 | {/if} | |
62 | ||
63 | ||
64 | {if $pager->_totalItems} | |
31037a42 | 65 | |
6a488035 TO |
66 | <h3>{ts}Recent Grants{/ts}</h3> |
67 | <div class="form-item"> | |
68 | {include file="CRM/Grant/Form/Selector.tpl" context="DashBoard"} | |
69 | </div> | |
70 | {/if} |