Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
4 | +--------------------------------------------------------------------+ |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
6 | +--------------------------------------------------------------------+ | |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | <div class="view-content"> | |
27 | {if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *} | |
28 | {include file="CRM/Pledge/Form/Pledge.tpl"} | |
29 | {elseif $action eq 4} | |
30 | {include file="CRM/Pledge/Form/PledgeView.tpl"} | |
31 | {else} | |
32 | <div id="help"> | |
33 | {ts 1=$displayName}Pledges received from %1 since inception.{/ts} | |
34 | {if $permission EQ 'edit'} | |
35 | {capture assign=newContribURL}{crmURL p="civicrm/contact/view/pledge" q="reset=1&action=add&cid=`$contactId`&context=pledge"}{/capture} | |
36 | {ts 1=$newContribURL}Click <a href='%1'>Add Pledge</a> to record a new pledge received from this contact.{/ts} | |
37 | {/if} | |
38 | </div> | |
39 | ||
40 | {if $action eq 16 and $permission EQ 'edit'} | |
41 | <div class="action-link"> | |
42 | <a accesskey="N" href="{$newContribURL}" class="button"><span><div class="icon add-icon"></div>{ts}Add Pledge{/ts}</a></span> | |
43 | <br/><br/> | |
44 | </div> | |
45 | {/if} | |
46 | ||
47 | ||
48 | {if $rows} | |
49 | <p> </p> | |
50 | {include file="CRM/Pledge/Form/Selector.tpl"} | |
51 | ||
52 | {else} | |
53 | <div class="messages status no-popup"> | |
54 | <div class="icon inform-icon"></div> | |
55 | {ts}No pledges have been recorded from this contact.{/ts} | |
56 | </div> | |
57 | {/if} | |
58 | ||
59 | {if $honor} | |
60 | <div class="solid-border-top"> | |
61 | <br /><label>{ts 1=$displayName}Contributions made in honor of %1{/ts}</label> | |
62 | </div> | |
63 | {include file="CRM/Contribute/Page/ContributionHonor.tpl"} | |
64 | {/if} | |
65 | ||
66 | {/if} | |
67 | </div> |