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