Merge pull request #15838 from demeritcowboy/getcasereport-split
[civicrm-core.git] / templates / CRM / Grant / Page / DashBoard.tpl
CommitLineData
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{* CiviGrant DashBoard (launch page) *}
8b79b044 11<div class="help">
6a488035
TO
12 {capture assign=findContactURL}{crmURL p="civicrm/contact/search/basic" q="reset=1"}{/capture}
13 <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}
14 </p>
15</div>
16<h3>{ts}Grants Summary{/ts}</h3>
17<div class="description">
18 {capture assign=findGrantsURL}{crmURL p="civicrm/grant/search" q="reset=1"}{/capture}
19 <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}
20 </p>
21</div>
22
23{if $grantSummary.total_grants}
24You have {$grantSummary.total_grants} grant(s) registered in your database.
25<table class="report">
26<tr class="columnheader-dark">
27 <th scope="col">{ts}Grant status{/ts}</th>
28 <th scope="col">{ts}Number of grants{/ts}</th>
29</tr>
30
31{foreach from=$grantSummary.per_status item=status key=id}
32<tr>
33 <td><a href="{crmURL p="civicrm/grant/search" q="reset=1&status=`$id`&force=1"}">{$status.label}</a></td>
34 <td><a href="{crmURL p="civicrm/grant/search" q="reset=1&status=`$id`&force=1"}">{$status.total}</a></td>
35</tr>
36{/foreach}
37<tr class="columnfooter">
38 <td>{ts}TOTAL{/ts}:</td>
39 <td>{$grantSummary.total_grants}</td>
40</tr>
41</table>
42{else}
43{ts}You have no Grants registered in your database.{/ts}
44
45{/if}
46
47
48{if $pager->_totalItems}
31037a42 49
6a488035
TO
50 <h3>{ts}Recent Grants{/ts}</h3>
51 <div class="form-item">
52 {include file="CRM/Grant/Form/Selector.tpl" context="DashBoard"}
53 </div>
54{/if}