CRM-16526, removed conflict message
[civicrm-core.git] / templates / CRM / Form / basicForm.tpl
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-{$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>
32 <td>
33 {$form.cvv_backoffice_required.html}<br />
34 <p class="description">{ts}{$cvv_backoffice_required_description}{/ts}</p>
35 </td>
36 </tr>
37 <tr class="crm-preferences-form-block-acl_financial_type">
38 <td class="label">{$form.acl_financial_type.label}&nbsp;{help id="acl_financial_type"}</td>
39 <td>
40 {$form.acl_financial_type.html}
41 </td>
42 </tr>
43 {if $formName == "Contribute_Preferences" }
44 <tr class="crm-preferences-form-block-invoicing">
45 <td class="label">{$form.invoicing.label}</td>
46 <td>
47 {$form.invoicing.html}
48 </td>
49 </tr>
50 {/if}
51 </table>
52 {/if}
53 <table class="form-layout" id="invoicing_blocks">
54 {foreach from=$fields item=field key=fieldName}
55 {assign var=n value=$fieldName}
56 {if $form.$n}
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>
60 <td>
61 {$form.$n.html} {$form.$n.label}
62 {if $field.description}
63 <br /><span class="description">{$field.description}</span>
64 {/if}
65 </td>
66 {else}
67 <td class="label">{$form.$n.label}</td>
68 <td>
69 {$form.$n.html}
70 {if $field.description}
71 <br /><span class="description">{$field.description}</span>
72 {/if}
73 </td>
74 {/if}
75 </tr>
76 {/if}
77 {/foreach}
78 </table>
79
80 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
81 </div>
82 {if $formName == "Contribute_Preferences"}
83 {literal}
84 <script type="text/javascript">
85 cj(document).ready(function() {
86 if (document.getElementById("invoicing").checked) {
87 cj("#invoicing_blocks").show();
88 }
89 else {
90 cj("#invoicing_blocks").hide();
91 }
92 });
93 cj(function () {
94 cj("input[type=checkbox]").click(function() {
95 if (cj("#invoicing").is(":checked")) {
96 cj("#invoicing_blocks").show();
97 }
98 else {
99 cj("#invoicing_blocks").hide();
100 }
101 });
102 });
103 </script>
104 {/literal}
105 {/if}