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 | {if $action eq 1 or $action eq 2 or $action eq 8 }{* add, update or delete *} | |
27 | {include file="CRM/Grant/Form/Grant.tpl"} | |
28 | {elseif $action eq 4 } | |
29 | {include file="CRM/Grant/Form/GrantView.tpl"} | |
30 | {else} | |
31 | <div class="view-content"> | |
32 | {if $permission EQ 'edit'} | |
33 | {capture assign=newGrantURL}{crmURL p="civicrm/contact/view/grant" q="reset=1&action=add&cid=`$contactId`&context=grant"}{/capture} | |
34 | {/if} | |
35 | ||
36 | <div id="help"> | |
ebf2b57b | 37 | <p>{ts 1=$displayName}This page lists all grants for %1 since inception.{/ts} |
6a488035 | 38 | {if $permission EQ 'edit'} |
5260bb5c CW |
39 | {capture assign=link}accesskey='N' href='{$newGrantURL}' class='action-item'{/capture} |
40 | {ts 1=$link}Click <a %1>Add Grant</a> to record a Grant for this contact.{/ts} | |
6a488035 TO |
41 | {/if} |
42 | </p> | |
43 | </div> | |
44 | {if $action eq 16 and $permission EQ 'edit'} | |
45 | <div class="action-link"> | |
52604b19 | 46 | <a href="{$newGrantURL}" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Grant{/ts}</span></a><br/><br/> |
6a488035 TO |
47 | </div> |
48 | {/if} | |
49 | {if $rows} | |
ebf2b57b | 50 | |
6a488035 TO |
51 | {include file="CRM/Grant/Form/Selector.tpl"} |
52 | {else} | |
53 | <div class="messages status"> | |
54 | <div class="icon inform-icon"></div> | |
55 | {ts}No grants have been recorded for this contact.{/ts} | |
56 | </div> | |
57 | {/if} | |
58 | </div> | |
59 | {/if} |