Commit | Line | Data |
---|---|---|
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 | {* Enduser Tell-a-Friend form. *} | |
11 | {if $status eq 'thankyou' } {* Form has been submitted. *} | |
12 | <div class="crm-section tell_friend_thankyou-section"> | |
13 | {$thankYouText} | |
14 | </div> | |
15 | ||
16 | {* Add button for donor to create their own Personal Campaign page *} | |
17 | {if $linkText} | |
18 | <div class="crm-section create_pcp_link-section"> | |
13a3d214 | 19 | <a href="{$linkTextUrl}" title="{$linkText|escape}" class="button"><span><i class="crm-i fa-chevron-right" aria-hidden="true"></i> {$linkText}</span></a> |
6a488035 TO |
20 | </div><br /><br /> |
21 | {/if} | |
22 | ||
23 | {else} | |
24 | <div class="crm-group tell_friend_form-group"> | |
25 | <table class="form-layout-compressed"> | |
26 | <tr> | |
27 | <td colspan=2> | |
28 | <p> | |
29 | {if $context EQ 'pcp'} | |
30 | {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} | |
31 | {else} | |
32 | {$intro} | |
33 | {/if} | |
34 | </p> | |
35 | </td> | |
36 | </tr> | |
37 | ||
38 | <tr> | |
39 | <td class="right font-size12pt">{$form.from_name.label} </td> | |
40 | <td class="font-size12pt">{$form.from_name.html} <{$form.from_email.html}></td> | |
41 | </tr> | |
42 | <tr> | |
43 | <td class="label font-size12pt">{$form.suggested_message.label}</td> | |
44 | <td>{$form.suggested_message.html}</td> | |
45 | </tr> | |
46 | ||
47 | <tr> | |
48 | <td></td> | |
49 | <td> | |
50 | <fieldset class="crm-group tell_friend_emails-group"> | |
51 | <legend>{ts}Send to these Friend(s){/ts}</legend> | |
52 | <table> | |
53 | <tr class="columnheader"> | |
54 | <td>{ts}First Name{/ts}</td> | |
55 | <td>{ts}Last Name{/ts}</td> | |
56 | <td>{ts}Email Address{/ts}</td> | |
57 | </tr> | |
58 | {section name=mail start=1 loop=$mailLimit} | |
59 | {assign var=idx value=$smarty.section.mail.index} | |
60 | <tr> | |
61 | <td class="even-row">{$form.friend.$idx.first_name.html}</td> | |
62 | <td class="even-row">{$form.friend.$idx.last_name.html}</td> | |
63 | <td class="even-row">{$form.friend.$idx.email.html}</td> | |
64 | </tr> | |
65 | {/section} | |
66 | </table> | |
67 | </fieldset> | |
68 | </td> | |
69 | </tr> | |
70 | <tr> | |
71 | <td> </td> | |
72 | <td>{$form.buttons.html}</td> | |
73 | </tr> | |
74 | </table> | |
75 | </div> | |
76 | {/if} | |
77 | ||
78 | {if $isShare} | |
79 | {if $context EQ 'event'} | |
7e8bc026 | 80 | {capture assign=pageURL}{crmURL p='civicrm/event/info' q="id=`$entityID`&reset=1" a=1 fe=1 h=1}{/capture} |
6a488035 | 81 | {else} |
7e8bc026 | 82 | {capture assign=pageURL}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$entityID`" a=1 fe=1 h=1}{/capture} |
6a488035 TO |
83 | {/if} |
84 | {include file="CRM/common/SocialNetwork.tpl" url=$pageURL title=$title pageURL=$pageURL} | |
85 | {/if} |