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 | <div id="form" class="crm-form-block crm-friend-manage-block"> | |
f6eedce7 | 11 | <div class="help"> |
6a488035 TO |
12 | {if $context EQ 'Contribute'} |
13 | {assign var=enduser value="contributor"} | |
14 | {assign var=pageType value="Online Contribution page"} | |
15 | {ts}Tell a Friend gives your contributors an easy way to spread the word about this fundraising campaign. The contribution thank-you page will include a link to a form where they can enter their friends' email addresses, along with a personalized message. CiviCRM will record these solicitation activities, and will add the friends to your database.{/ts} | |
16 | {elseif $context EQ 'Event'} | |
17 | {assign var=enduser value="participant"} | |
18 | {assign var=pageType value="Event Information page"} | |
19 | {ts}Tell a Friend gives registering participants an easy way to spread the word about this event. The registration thank-you page will include a link to a form where they can enter their friends' email addresses, along with a personalized message. CiviCRM will record these solicitation activities, and will add the friends to your database.{/ts} | |
20 | {elseif $context EQ 'Pledge'} | |
21 | {assign var=enduser value="pledge"} | |
22 | {assign var=pageType value="Pledge Information page"} | |
23 | {ts}Tell a Friend gives registering pledge signers an easy way to spread the word about this pledge. The registration thank-you page will include a link to a form where they can enter their friends' email addresses, along with a personalized message. CiviCRM will record these solicitation activities, and will add the friends to your database.{/ts} | |
24 | {/if} | |
25 | {ts}If sharing through social media is enabled, links allowing people to share with their social network will also be included on the Tell a Friend form (e.g. Facebook "Like", Google+, and Twitter). You can turn social media sharing on and off from the Settings tab.{/ts} | |
26 | </div> | |
27 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
28 | <table class="form-layout"> | |
6a488035 TO |
29 | <tr class="crm-friend-manage-form-block-tf_is_active"> |
30 | <td class="label"">{$form.tf_is_active.html}</td> | |
31 | <td>{$form.tf_is_active.label}</td> | |
32 | </tr> | |
33 | </table> | |
34 | <div id="friendFields"> | |
35 | <table class="form-layout"> | |
36 | <tr class="crm-friend-manage-form-block-tf_title"> | |
37 | <td class="label">{$form.tf_title.label} | |
38 | {if $action == 2} | |
00f9643d | 39 | {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='title' id=$friendId} |
6a488035 TO |
40 | {/if} |
41 | </td> | |
42 | <td>{$form.tf_title.html} | |
43 | </td> | |
44 | </tr> | |
45 | <tr class="crm-friend-manage-form-block-intro"> | |
46 | <td class="label">{$form.intro.label} | |
47 | {if $action == 2} | |
00f9643d | 48 | {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='intro' id=$friendId} |
6a488035 TO |
49 | {/if} |
50 | </td> | |
51 | <td>{$form.intro.html}<br /> | |
52 | <span class="description">{ts 1=$enduser}This message is displayed to the %1 at the top of the Tell a Friend form. You may include HTML tags to add formatting or links.{/ts} | |
53 | </span> | |
54 | </td> | |
55 | </tr> | |
56 | <tr class="crm-friend-manage-form-block-suggested_message"> | |
57 | <td class="label">{$form.suggested_message.label} | |
58 | {if $action == 2} | |
00f9643d | 59 | {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='suggested_message' id=$friendId} |
6a488035 TO |
60 | {/if} |
61 | </td> | |
62 | <td>{$form.suggested_message.html}<br /> | |
63 | <span class="description">{ts 1=$enduser}Provides the %1 with suggested text for their personalized message to their friends.{/ts} | |
64 | </span> | |
65 | </td> | |
66 | </tr> | |
67 | <tr class="crm-friend-manage-form-block-general_link"> | |
68 | <td class="label">{$form.general_link.label}</td> | |
69 | <td>{$form.general_link.html}<br /> | |
70 | <span class="description">{ts 1=$pageType}A link to this %1 is automatically included in the email sent to friends. If you ALSO want to include a link providing general information about your organization, enter that link here (e.g <em>http://www.example.org/</em>){/ts} | |
71 | </span> | |
72 | </td> | |
73 | </tr> | |
74 | <tr class="crm-friend-manage-form-block-thankyou_title"> | |
75 | <td class="label">{$form.tf_thankyou_title.label} | |
76 | {if $action == 2} | |
323e9cc8 | 77 | {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='thankyou_title' id=$friendId}{/if}</td> |
6a488035 TO |
78 | <td>{$form.tf_thankyou_title.html}</td> |
79 | </tr> | |
80 | <tr class="crm-friend-manage-form-block-thankyou_text"> | |
81 | <td class="label">{$form.tf_thankyou_text.label} | |
82 | {if $action == 2} | |
323e9cc8 | 83 | {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='thankyou_text' id=$friendId} |
6a488035 TO |
84 | {/if} |
85 | </td> | |
86 | <td>{$form.tf_thankyou_text.html}<br /> | |
87 | <span class="description">{ts 1=$enduser}Your message thanking the %1 for helping to spread the word. You may include HTML tags to add formatting or links.{/ts} | |
88 | </span> | |
89 | </td> | |
90 | </tr> | |
91 | </table> | |
92 | </div> | |
93 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
94 | </div> | |
95 | ||
96 | {literal} | |
97 | <script type="text/javascript"> | |
98 | var is_act = document.getElementsByName('tf_is_active'); | |
99 | if ( ! is_act[0].checked) { | |
100 | cj('#friendFields').hide(); | |
101 | } | |
102 | function friendBlock(chkbox) { | |
103 | if (chkbox.checked) { | |
104 | cj('#friendFields').show(); | |
105 | return; | |
106 | } else { | |
107 | cj('#friendFields').hide(); | |
108 | return; | |
109 | } | |
110 | } | |
111 | </script> | |
112 | {/literal} |