Commit | Line | Data |
---|---|---|
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"> | |
cfba5e1f | 29 | <p>{ts}Use this form to configure the thank-you message and receipting options.{/ts} {help id="id_thank"}</p> |
6a488035 TO |
30 | </div> |
31 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
2b99bb42 | 32 | <table class="form-layout"> |
6a488035 | 33 | <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_title"> |
2b99bb42 DG |
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} {help id="id_thankyou-title"}</td> |
35 | <td class="html-adjust">{$form.thankyou_title.html} | |
6a488035 TO |
36 | </td> |
37 | </tr> | |
38 | <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_text"> | |
2b99bb42 DG |
39 | <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}<br />{help id="id_thankyou-text"}</td> |
40 | <td class="html-adjust">{$form.thankyou_text.html}<br /></td> | |
6a488035 TO |
41 | </tr> |
42 | <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_footer"> | |
2b99bb42 DG |
43 | <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} {help id="id_footer-text"}</td> |
44 | <td class="html-adjust">{$form.thankyou_footer.html}<br /></td> | |
6a488035 TO |
45 | </tr> |
46 | <tr class="crm-contribution-contributionpage-thankyou-form-block-is_email_receipt"> | |
47 | <td class="label"></td> | |
2b99bb42 | 48 | <td class="html-adjust">{$form.is_email_receipt.html}{$form.is_email_receipt.label} {help id="id_is-email-receipt"} |
6a488035 TO |
49 | </td> |
50 | </tr> | |
51 | </table> | |
2b99bb42 | 52 | <table id="receiptDetails" class="form-layout"> |
6a488035 | 53 | <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_from_name"> |
2b99bb42 | 54 | <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} {help id="id_receipt-from-name"} |
6a488035 | 55 | </td> |
2b99bb42 | 56 | <td class="html-adjust">{$form.receipt_from_name.html} |
6a488035 TO |
57 | </td> |
58 | </tr> | |
59 | <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_from_email"> | |
2b99bb42 DG |
60 | <td class="label">{$form.receipt_from_email.label}{$reqMark} {help id="id_receipt-from-email"}</td> |
61 | <td class="html-adjust">{$form.receipt_from_email.html}</td> | |
6a488035 TO |
62 | </tr> |
63 | <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_text"> | |
2b99bb42 DG |
64 | <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} {help id="id_receipt-text"}</td> |
65 | <td class="html-adjust">{$form.receipt_text.html}<br /></td> | |
6a488035 TO |
66 | </tr> |
67 | <tr class="crm-contribution-contributionpage-thankyou-form-block-cc_receipt"> | |
2b99bb42 DG |
68 | <td class="label">{$form.cc_receipt.label} {help id="id_receipt-cc"}</td> |
69 | <td class="html-adjust">{$form.cc_receipt.html}</td> | |
6a488035 TO |
70 | </tr> |
71 | <tr class="crm-contribution-contributionpage-thankyou-form-block-bcc_receipt"> | |
2b99bb42 DG |
72 | <td class="label">{$form.bcc_receipt.label} {help id="id_receipt-bcc"}</td> |
73 | <td class="html-adjust">{$form.bcc_receipt.html}</td> | |
6a488035 TO |
74 | </tr> |
75 | </table> | |
76 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
77 | </div> | |
78 | ||
79 | <script type="text/javascript"> | |
80 | showReceipt(); | |
81 | {literal} | |
82 | function showReceipt() { | |
83 | var checkbox = document.getElementsByName("is_email_receipt"); | |
84 | if (checkbox[0].checked) { | |
85 | document.getElementById("receiptDetails").style.display = "block"; | |
86 | } else { | |
87 | document.getElementById("receiptDetails").style.display = "none"; | |
88 | } | |
89 | } | |
90 | {/literal} | |
91 | </script> |