Change inform-icon to fa-info-circle
[civicrm-core.git] / templates / CRM / Grant / Page / Tab.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 +--------------------------------------------------------------------+
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
20 <div class="help">
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}
25 {/if}
26 </p>
27 </div>
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/>
31 </div>
32 {/if}
33 {if $rows}
34
35 {include file="CRM/Grant/Form/Selector.tpl"}
36 {else}
37 <div class="messages status">
38 {icon icon="fa-info-circle"}{/icon}
39 {ts}No grants have been recorded for this contact.{/ts}
40 </div>
41 {/if}
42 </div>
43 {/if}