Merge pull request #3341 from systopia/CRM-14740
[civicrm-core.git] / templates / CRM / Friend / Form / Friend.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
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<div id="form" class="crm-form-block crm-friend-manage-block">
27<div id="help">
28 {if $context EQ 'Contribute'}
29 {assign var=enduser value="contributor"}
30 {assign var=pageType value="Online Contribution page"}
31 {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}
32 {elseif $context EQ 'Event'}
33 {assign var=enduser value="participant"}
34 {assign var=pageType value="Event Information page"}
35 {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}
36 {elseif $context EQ 'Pledge'}
37 {assign var=enduser value="pledge"}
38 {assign var=pageType value="Pledge Information page"}
39 {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}
40 {/if}
41 {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}
42</div>
43 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
44 <table class="form-layout">
45 <tr>
46 <td></td>
47 </tr>
48 <tr class="crm-friend-manage-form-block-tf_is_active">
49 <td class="label"">{$form.tf_is_active.html}</td>
50 <td>{$form.tf_is_active.label}</td>
51 </tr>
52 </table>
53 <div id="friendFields">
54 <table class="form-layout">
55 <tr class="crm-friend-manage-form-block-tf_title">
56 <td class="label">{$form.tf_title.label}
57 {if $action == 2}
00f9643d 58 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='title' id=$friendId}
6a488035
TO
59 {/if}
60 </td>
61 <td>{$form.tf_title.html}
62 </td>
63 </tr>
64 <tr class="crm-friend-manage-form-block-intro">
65 <td class="label">{$form.intro.label}
66 {if $action == 2}
00f9643d 67 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='intro' id=$friendId}
6a488035
TO
68 {/if}
69 </td>
70 <td>{$form.intro.html}<br />
71 <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}
72 </span>
73 </td>
74 </tr>
75 <tr class="crm-friend-manage-form-block-suggested_message">
76 <td class="label">{$form.suggested_message.label}
77 {if $action == 2}
00f9643d 78 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='suggested_message' id=$friendId}
6a488035
TO
79 {/if}
80 </td>
81 <td>{$form.suggested_message.html}<br />
82 <span class="description">{ts 1=$enduser}Provides the %1 with suggested text for their personalized message to their friends.{/ts}
83 </span>
84 </td>
85 </tr>
86 <tr class="crm-friend-manage-form-block-general_link">
87 <td class="label">{$form.general_link.label}</td>
88 <td>{$form.general_link.html}<br />
89 <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}
90 </span>
91 </td>
92 </tr>
93 <tr class="crm-friend-manage-form-block-thankyou_title">
94 <td class="label">{$form.tf_thankyou_title.label}
95 {if $action == 2}
323e9cc8 96 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='thankyou_title' id=$friendId}{/if}</td>
6a488035
TO
97 <td>{$form.tf_thankyou_title.html}</td>
98 </tr>
99 <tr class="crm-friend-manage-form-block-thankyou_text">
100 <td class="label">{$form.tf_thankyou_text.label}
101 {if $action == 2}
323e9cc8 102 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='thankyou_text' id=$friendId}
6a488035
TO
103 {/if}
104 </td>
105 <td>{$form.tf_thankyou_text.html}<br />
106 <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}
107 </span>
108 </td>
109 </tr>
110 </table>
111 </div>
112 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
113</div>
114
115{literal}
116<script type="text/javascript">
117 var is_act = document.getElementsByName('tf_is_active');
118 if ( ! is_act[0].checked) {
119 cj('#friendFields').hide();
120 }
121 function friendBlock(chkbox) {
122 if (chkbox.checked) {
123 cj('#friendFields').show();
124 return;
125 } else {
126 cj('#friendFields').hide();
127 return;
128 }
129 }
130</script>
131{/literal}