Merge pull request #23156 from eileenmcnaughton/pppro
[civicrm-core.git] / templates / CRM / Pledge / 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<div class="view-content">
11{if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *}
12 {include file="CRM/Pledge/Form/Pledge.tpl"}
13{elseif $action eq 4}
14 {include file="CRM/Pledge/Form/PledgeView.tpl"}
15{else}
f6eedce7 16<div class="help">
6a488035
TO
17 {ts 1=$displayName}Pledges received from %1 since inception.{/ts}
18 {if $permission EQ 'edit'}
2c407361 19 {capture assign=newContribURL}{crmURL p="civicrm/contact/view/pledge" q="reset=1&action=add&cid=`$contactId`&context=pledge"}{/capture}
e04550f9 20 {ts 1=$link}Click <a class="action-item" href="{$newContribURL|smarty:nodefaults}">Add Pledge</a> to record a new pledge received from this contact.{/ts}
6a488035
TO
21 {/if}
22</div>
23
24{if $action eq 16 and $permission EQ 'edit'}
25 <div class="action-link">
e04550f9 26 <a accesskey="N" href="{$newContribURL|smarty:nodefaults}" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {ts}Add Pledge{/ts}</a></span>
6a488035
TO
27 <br/><br/>
28 </div>
29{/if}
30
31
32{if $rows}
33 <p> </p>
34 {include file="CRM/Pledge/Form/Selector.tpl"}
35
36{else}
37 <div class="messages status no-popup">
34d6cec4 38 {icon icon="fa-info-circle"}{/icon}
6a488035
TO
39 {ts}No pledges have been recorded from this contact.{/ts}
40 </div>
41{/if}
42
43{if $honor}
44 <div class="solid-border-top">
45 <br /><label>{ts 1=$displayName}Contributions made in honor of %1{/ts}</label>
46 </div>
47 {include file="CRM/Contribute/Page/ContributionHonor.tpl"}
48{/if}
49
50{/if}
51</div>