Merge pull request #15838 from demeritcowboy/getcasereport-split
[civicrm-core.git] / templates / CRM / Grant / Page / Tab.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{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"}
14{else}
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}
18 {/if}
19
f6eedce7 20 <div class="help">
ebf2b57b 21 <p>{ts 1=$displayName}This page lists all grants for %1 since inception.{/ts}
6a488035 22 {if $permission EQ 'edit'}
5260bb5c
CW
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}
6a488035
TO
25 {/if}
26 </p>
27 </div>
28{if $action eq 16 and $permission EQ 'edit'}
29 <div class="action-link">
a2c70872 30 <a href="{$newGrantURL}" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Grant{/ts}</span></a><br/><br/>
6a488035
TO
31 </div>
32 {/if}
33 {if $rows}
ebf2b57b 34
6a488035
TO
35 {include file="CRM/Grant/Form/Selector.tpl"}
36 {else}
37 <div class="messages status">
38 <div class="icon inform-icon"></div>&nbsp;
39 {ts}No grants have been recorded for this contact.{/ts}
40 </div>
41 {/if}
42 </div>
43{/if}