2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
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 |
8 +--------------------------------------------------------------------+
10 {if $action eq 1 or $action eq 2 or $action eq 8 }{* add, update or delete *}
11 {include file="CRM/Grant/Form/Grant.tpl"}
12 {elseif $action eq 4 }
13 {include file="CRM/Grant/Form/GrantView.tpl"}
15 <div class="view-content">
16 {if $permission EQ 'edit'}
17 {capture assign=newGrantURL}{crmURL p="civicrm/contact/view/grant" q="reset=1&action=add&cid=`$contactId`&context=grant"}{/capture}
21 <p>{ts 1=$displayName}This page lists all grants for %1 since inception.{/ts}
22 {if $permission EQ 'edit'}
23 {capture assign=link}accesskey='N' href='{$newGrantURL}' class='action-item'{/capture}
24 {ts 1=$link}Click <a %1>Add Grant</a> to record a Grant for this contact.{/ts}
28 {if $action eq 16 and $permission EQ 'edit'}
29 <div class="action-link">
30 <a href="{$newGrantURL}" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {ts}Add Grant{/ts}</span></a><br/><br/>
35 {include file="CRM/Grant/Form/Selector.tpl"}
37 <div class="messages status">
38 {icon icon="fa-info-circle"}{/icon}
39 {ts}No grants have been recorded for this contact.{/ts}