Merge pull request #3835 from colemanw/groupCount
[civicrm-core.git] / templates / CRM / Contribute / Form / ContributionPage / ThankYou.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{capture assign='reqMark'}<span class="marker" title="{ts}This field is required.{/ts}">*</span>{/capture}
27<div class="crm-block crm-form-block crm-contribution-contributionpage-thankyou-form-block">
28<div id="help">
29 <p>{ts}Use this form to configure the thank-you message and receipting options. Contributors will see a confirmation and thank-you page after whenever an online contribution is successfully processed. You provide the content and layout of the thank-you section below. You also control whether an electronic receipt is automatically emailed to each contributor - and can add a custom message to that receipt.{/ts}</p>
30</div>
31 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
32 <table class="form-layout-compressed">
33 <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_title">
34 <td class="label">{$form.thankyou_title.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='thankyou_title' id=$contributionPageID}{/if}</td>
35 <td class="html-adjust">{$form.thankyou_title.html}<br />
36 <span class="description">{ts}This title will be displayed at the top of the thank-you / transaction confirmation page.{/ts}</span>
37 </td>
38 </tr>
39 <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_text">
40 <td class="label">{$form.thankyou_text.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='thankyou_text' id=$contributionPageID}{/if}</td>
41 <td class="html-adjust">{$form.thankyou_text.html}<br />
42 <span class="description">{ts}Enter text (and optional HTML layout tags) for the thank-you message that will appear at the top of the confirmation page.{/ts}</span>
43 </td>
44 </tr>
45 <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_footer">
46 <td class="label">{$form.thankyou_footer.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='thankyou_footer' id=$contributionPageID}{/if}</td>
47 <td class="html-adjust">{$form.thankyou_footer.html}<br />
48 <span class="description">{ts}Enter link(s) and/or text that you want to appear at the bottom of the thank-you page. You can use this content area to encourage contributors to visit a tell-a-friend page or take some other action.{/ts}</span>
49 </td>
50 </tr>
51 <tr class="crm-contribution-contributionpage-thankyou-form-block-is_email_receipt">
52 <td class="label"></td>
53 <td class="html-adjust">{$form.is_email_receipt.html}{$form.is_email_receipt.label}<br />
54 <span class="description">{ts}Check this box if you want an electronic receipt to be sent automatically.{/ts}</span>
55 </td>
56 </tr>
57 </table>
58 <table id="receiptDetails" class="form-layout-compressed">
59 <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_from_name">
60 <td class="label">{$form.receipt_from_name.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='receipt_from_name' id=$contributionPageID}{/if}
61 </td>
62 <td class="html-adjust">{$form.receipt_from_name.html}<br />
63 <span class="description">{ts}Enter the FROM name to be used when receipts are emailed to contributors.{/ts}</span>
64 </td>
65 </tr>
66 <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_from_email">
67 <td class="label">{$form.receipt_from_email.label}{$reqMark}
68 </td>
69 <td class="html-adjust">{$form.receipt_from_email.html}<br />
70 <span class="description">{ts}Enter the FROM email address to be used when receipts are emailed to contributors.{/ts}</span>
71 </td>
72 </tr>
73 <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_text">
74 <td class="label">{$form.receipt_text.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contribution_page' field='receipt_text' id=$contributionPageID}{/if}
75 </td>
76 <td class="html-adjust">{$form.receipt_text.html}<br />
77 <span class="description">{ts}Enter a message you want included at the beginning of emailed receipts. NOTE: This text will be included in both TEXT and HTML versions of receipt emails so we do not recommend including HTML tags / formatting here.{/ts}<br /></span>
78 </td>
79 </tr>
80 <tr class="crm-contribution-contributionpage-thankyou-form-block-cc_receipt">
81 <td class="label">{$form.cc_receipt.label}
82 </td>
83 <td class="html-adjust">{$form.cc_receipt.html}<br />
84 <span class="description">{ts}If you want member(s) of your organization to receive a carbon copy of each emailed receipt, enter one or more email addresses here. Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org).{/ts}
85 </span>
86 </td>
87 </tr>
88 <tr class="crm-contribution-contributionpage-thankyou-form-block-bcc_receipt">
89 <td class="label">{$form.bcc_receipt.label}
90 </td>
91 <td class="html-adjust">{$form.bcc_receipt.html}<br />
92 <span class="description">{ts}If you want member(s) of your organization to receive a BLIND carbon copy of each emailed receipt, enter one or more email addresses here. Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org).{/ts}</span>
93 </td>
94 </tr>
95 </table>
96 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
97</div>
98
99<script type="text/javascript">
100 showReceipt();
101 {literal}
102 function showReceipt() {
103 var checkbox = document.getElementsByName("is_email_receipt");
104 if (checkbox[0].checked) {
105 document.getElementById("receiptDetails").style.display = "block";
106 } else {
107 document.getElementById("receiptDetails").style.display = "none";
108 }
109 }
110 {/literal}
111</script>