Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
2a73d3b0 | 5 | | Copyright CiviCRM LLC (c) 2004-2017 | |
6a488035 TO |
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 | {* Enduser Tell-a-Friend form. *} | |
27 | {if $status eq 'thankyou' } {* Form has been submitted. *} | |
28 | <div class="crm-section tell_friend_thankyou-section"> | |
29 | {$thankYouText} | |
30 | </div> | |
31 | ||
32 | {* Add button for donor to create their own Personal Campaign page *} | |
33 | {if $linkText} | |
34 | <div class="crm-section create_pcp_link-section"> | |
35 | <a href="{$linkTextUrl}" title="{$linkText}" class="button"><span>» {$linkText}</span></a> | |
36 | </div><br /><br /> | |
37 | {/if} | |
38 | ||
39 | {else} | |
40 | <div class="crm-group tell_friend_form-group"> | |
41 | <table class="form-layout-compressed"> | |
42 | <tr> | |
43 | <td colspan=2> | |
44 | <p> | |
45 | {if $context EQ 'pcp'} | |
46 | {ts 1=$pcpTitle}Spread the word about this fundraising page (%1). Add your personal message below. A link to the fundraising page will be automatically included in the email.{/ts} | |
47 | {else} | |
48 | {$intro} | |
49 | {/if} | |
50 | </p> | |
51 | </td> | |
52 | </tr> | |
53 | ||
54 | <tr> | |
55 | <td class="right font-size12pt">{$form.from_name.label} </td> | |
56 | <td class="font-size12pt">{$form.from_name.html} <{$form.from_email.html}></td> | |
57 | </tr> | |
58 | <tr> | |
59 | <td class="label font-size12pt">{$form.suggested_message.label}</td> | |
60 | <td>{$form.suggested_message.html}</td> | |
61 | </tr> | |
62 | ||
63 | <tr> | |
64 | <td></td> | |
65 | <td> | |
66 | <fieldset class="crm-group tell_friend_emails-group"> | |
67 | <legend>{ts}Send to these Friend(s){/ts}</legend> | |
68 | <table> | |
69 | <tr class="columnheader"> | |
70 | <td>{ts}First Name{/ts}</td> | |
71 | <td>{ts}Last Name{/ts}</td> | |
72 | <td>{ts}Email Address{/ts}</td> | |
73 | </tr> | |
74 | {section name=mail start=1 loop=$mailLimit} | |
75 | {assign var=idx value=$smarty.section.mail.index} | |
76 | <tr> | |
77 | <td class="even-row">{$form.friend.$idx.first_name.html}</td> | |
78 | <td class="even-row">{$form.friend.$idx.last_name.html}</td> | |
79 | <td class="even-row">{$form.friend.$idx.email.html}</td> | |
80 | </tr> | |
81 | {/section} | |
82 | </table> | |
83 | </fieldset> | |
84 | </td> | |
85 | </tr> | |
86 | <tr> | |
87 | <td> </td> | |
88 | <td>{$form.buttons.html}</td> | |
89 | </tr> | |
90 | </table> | |
91 | </div> | |
92 | {/if} | |
93 | ||
94 | {if $isShare} | |
95 | {if $context EQ 'event'} | |
7e8bc026 | 96 | {capture assign=pageURL}{crmURL p='civicrm/event/info' q="id=`$entityID`&reset=1" a=1 fe=1 h=1}{/capture} |
6a488035 | 97 | {else} |
7e8bc026 | 98 | {capture assign=pageURL}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$entityID`" a=1 fe=1 h=1}{/capture} |
6a488035 TO |
99 | {/if} |
100 | {include file="CRM/common/SocialNetwork.tpl" url=$pageURL title=$title pageURL=$pageURL} | |
101 | {/if} |