commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Contribute / Form / ContributionPage / ThankYou.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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.{/ts} {help id="id_thank"}</p>
30 </div>
31 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
32 <table class="form-layout">
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} {help id="id_thankyou-title"}</td>
35 <td class="html-adjust">{$form.thankyou_title.html}
36 </td>
37 </tr>
38 <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_text">
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>
41 </tr>
42 <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_footer">
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>
45 </tr>
46 <tr class="crm-contribution-contributionpage-thankyou-form-block-is_email_receipt">
47 <td class="label"></td>
48 <td class="html-adjust">{$form.is_email_receipt.html}{$form.is_email_receipt.label} {help id="id_is-email-receipt"}
49 </td>
50 </tr>
51 </table>
52 <table id="receiptDetails" class="form-layout">
53 <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_from_name">
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"}
55 </td>
56 <td class="html-adjust">{$form.receipt_from_name.html}
57 </td>
58 </tr>
59 <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_from_email">
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>
62 </tr>
63 <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_text">
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>
66 </tr>
67 <tr class="crm-contribution-contributionpage-thankyou-form-block-cc_receipt">
68 <td class="label">{$form.cc_receipt.label} {help id="id_receipt-cc"}</td>
69 <td class="html-adjust">{$form.cc_receipt.html}</td>
70 </tr>
71 <tr class="crm-contribution-contributionpage-thankyou-form-block-bcc_receipt">
72 <td class="label">{$form.bcc_receipt.label} {help id="id_receipt-bcc"}</td>
73 <td class="html-adjust">{$form.bcc_receipt.html}</td>
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>