Ian province abbreviation patch - issue 724
[civicrm-core.git] / templates / CRM / Contribute / Form / ContributionPage / ThankYou.tpl
... / ...
CommitLineData
1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
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<div class="crm-block crm-form-block crm-contribution-contributionpage-thankyou-form-block">
27<div id="help">
28 <p>{ts}Use this form to configure the thank-you message and receipting options.{/ts} {help id="id_thank"}</p>
29</div>
30 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
31 <table class="form-layout">
32 <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_title">
33 <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>
34 <td class="html-adjust">{$form.thankyou_title.html}
35 </td>
36 </tr>
37 <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_text">
38 <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>
39 <td class="html-adjust">{$form.thankyou_text.html}<br /></td>
40 </tr>
41 <tr class="crm-contribution-contributionpage-thankyou-form-block-thankyou_footer">
42 <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>
43 <td class="html-adjust">{$form.thankyou_footer.html}<br /></td>
44 </tr>
45 <tr class="crm-contribution-contributionpage-thankyou-form-block-is_email_receipt">
46 <td class="label"></td>
47 <td class="html-adjust">{$form.is_email_receipt.html}{$form.is_email_receipt.label} {help id="id_is-email-receipt"}
48 </td>
49 </tr>
50 </table>
51 <table id="receiptDetails" class="form-layout">
52 <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_from_name">
53 <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"}
54 </td>
55 <td class="html-adjust">{$form.receipt_from_name.html}
56 </td>
57 </tr>
58 <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_from_email">
59 <td class="label">{$form.receipt_from_email.label} <span class="crm-marker" title="{ts}This field is required.{/ts}">*</span> {help id="id_receipt-from-email"}</td>
60 <td class="html-adjust">{$form.receipt_from_email.html}</td>
61 </tr>
62 <tr class="crm-contribution-contributionpage-thankyou-form-block-receipt_text">
63 <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>
64 <td class="html-adjust">{$form.receipt_text.html}<br /></td>
65 </tr>
66 <tr class="crm-contribution-contributionpage-thankyou-form-block-cc_receipt">
67 <td class="label">{$form.cc_receipt.label} {help id="id_receipt-cc"}</td>
68 <td class="html-adjust">{$form.cc_receipt.html}</td>
69 </tr>
70 <tr class="crm-contribution-contributionpage-thankyou-form-block-bcc_receipt">
71 <td class="label">{$form.bcc_receipt.label} {help id="id_receipt-bcc"}</td>
72 <td class="html-adjust">{$form.bcc_receipt.html}</td>
73 </tr>
74 </table>
75 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
76</div>
77
78<script type="text/javascript">
79 showReceipt();
80 {literal}
81 function showReceipt() {
82 var checkbox = document.getElementsByName("is_email_receipt");
83 if (checkbox[0].checked) {
84 document.getElementById("receiptDetails").style.display = "block";
85 } else {
86 document.getElementById("receiptDetails").style.display = "none";
87 }
88 }
89 {/literal}
90</script>