2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2016 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 <div class="crm-block crm-form-block crm-{$formName}-block">
27 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
28 {if $formName == "Contribute_Preferences"}
29 <table class = "form-layout">
30 <tr class="crm-miscellaneous-form-block-cvv-backoffice-required">
31 <td class="label">{$form.cvv_backoffice_required.label}</td>
33 {$form.cvv_backoffice_required.html}<br />
34 <p class="description">{ts}{$cvv_backoffice_required_description}{/ts}</p>
37 <tr class="crm-preferences-form-block-acl_financial_type">
38 <td class="label">{$form.acl_financial_type.label} {help id="acl_financial_type"}</td>
40 {$form.acl_financial_type.html}
43 {if $formName == "Contribute_Preferences" }
44 <tr class="crm-preferences-form-block-invoicing">
45 <td class="label">{$form.invoicing.label}</td>
47 {$form.invoicing.html}
53 <table class="form-layout" id="invoicing_blocks">
54 {foreach from=$fields item=field key=fieldName}
55 {assign var=n value=$fieldName}
57 <tr class="crm-preferences-form-block-{$fieldName}">
58 {if $field.html_type EQ 'checkbox'|| $field.html_type EQ 'checkboxes'}
59 <td class="label"></td>
61 {$form.$n.html} {$form.$n.label}
62 {if $field.description}
63 <br /><span class="description">{$field.description}</span>
67 <td class="label">{$form.$n.label}</td>
70 {if $field.description}
71 <br /><span class="description">{$field.description}</span>
80 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
82 {if $formName == "Contribute_Preferences"}
84 <script type="text/javascript">
85 cj(document).ready(function() {
86 if (document.getElementById("invoicing").checked) {
87 cj("#invoicing_blocks").show();
90 cj("#invoicing_blocks").hide();
94 cj("input[type=checkbox]").click(function() {
95 if (cj("#invoicing").is(":checked")) {
96 cj("#invoicing_blocks").show();
99 cj("#invoicing_blocks").hide();