Merge pull request #8551 from scardinius/crm-18815
[civicrm-core.git] / templates / CRM / Contribute / Form / Search / Common.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2016 |
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
27 <tr><td><label>{ts}Date Received{/ts}</label></td></tr>
28 <tr>
29 {include file="CRM/Core/DateRange.tpl" fieldName="contribution_date" from='_low' to='_high'}
30 </tr>
31 <tr>
32 <td><label>{ts}Contribution Amounts{/ts}</label> <br />
33 {$form.contribution_amount_low.label}
34 {$form.contribution_amount_low.html} &nbsp;&nbsp;
35 {$form.contribution_amount_high.label}
36 {$form.contribution_amount_high.html} </td>
37 <td><label>{$form.contribution_status_id.label}</label> <br />
38 {$form.contribution_status_id.html} </td>
39 </tr>
40 <tr>
41 <td>
42 <div class="float-left">
43 <label>{$form.payment_instrument_id.label}</label> <br />
44 {$form.payment_instrument_id.html|crmAddClass:twenty}
45 </div>
46 <div class="float-left" id="contribution_check_number_wrapper">
47 {$form.contribution_check_number.label} <br />
48 {$form.contribution_check_number.html}
49 </div>
50 </td>
51 <td>
52 {$form.contribution_trxn_id.label} <br />
53 {$form.contribution_trxn_id.html}
54 </td>
55 </tr>
56 <tr>
57 <td>
58 {$form.contribution_or_softcredits.label} <br />
59 {$form.contribution_or_softcredits.html}<br />
60 <div class="float-left" id="contribution_soft_credit_type_wrapper">
61 {$form.contribution_soft_credit_type_id.label} <br />
62 {$form.contribution_soft_credit_type_id.html|crmAddClass:twenty}
63 </div>
64 </td>
65 <td>
66 {$form.invoice_id.label} <br />
67 {$form.invoice_id.html}
68 </td>
69 </tr>
70 <tr>
71 <td>
72 <table style="width:auto">
73 <tbody>
74 <tr>
75 <td>{$form.contribution_thankyou_date_is_not_null.label}</td>
76 <td>
77 {$form.contribution_thankyou_date_is_not_null.html}
78 </td>
79 </tr>
80 <tr>
81 <td>{$form.contribution_receipt_date_is_not_null.label}</td>
82 <td>
83 {$form.contribution_receipt_date_is_not_null.html}
84 </td>
85 </tr>
86 <tr>
87 <td>{$form.contribution_test.label} {help id="is-test" file="CRM/Contact/Form/Search/Advanced"}</td>
88 <td>
89 {$form.contribution_test.html}
90 </td>
91 </tr>
92 </tbody>
93 </table>
94 </td>
95 <td>
96 <table style="width:auto">
97 <tbody>
98 <tr>
99 <td>{$form.contribution_pay_later.label}</td>
100 <td>
101 {$form.contribution_pay_later.html}
102 </td>
103 </tr>
104 <tr>
105 <td>{$form.contribution_recurring.label}</td>
106 <td>
107 {$form.contribution_recurring.html}
108 </td>
109 </tr>
110 </tbody>
111 </table>
112 </td>
113 </tr>
114 <tr>
115 <td>
116 <label>{ts}Financial Type{/ts}</label> <br />
117 {$form.financial_type_id.html|crmAddClass:twenty}
118 </td>
119 <td>
120 <label>{ts}Contribution Page{/ts}</label> <br />
121 {$form.contribution_page_id.html|crmAddClass:twenty}
122 </td>
123 </tr>
124 <tr>
125 <td>
126 {$form.contribution_source.label} <br />
127 {$form.contribution_source.html|crmAddClass:twenty}
128 </td>
129 <td>
130 {$form.contribution_product_id.label} <br />
131 {$form.contribution_product_id.html|crmAddClass:twenty}
132 </td>
133 </tr>
134 <tr>
135 <td>
136 {$form.contribution_pcp_made_through_id.label} <br />
137 {$form.contribution_pcp_made_through_id.html}
138 {include file="CRM/Contribute/Form/PCP.js.tpl"}
139 </td>
140 <td>
141 {$form.contribution_pcp_display_in_roll.label}
142 {$form.contribution_pcp_display_in_roll.html}
143 </td>
144 </tr>
145
146 <tr>
147 <td>
148 <label>{ts}Currency{/ts}</label> <br />
149 {$form.contribution_currency_type.html|crmAddClass:twenty}
150 </td>
151 {if $form.contribution_batch_id.html }
152 <td>
153 {$form.contribution_batch_id.label}<br />
154 {$form.contribution_batch_id.html}
155 </td>
156 {/if}
157 </tr>
158
159 {* campaign in contribution search *}
160 {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch"
161 campaignTrClass='' campaignTdClass=''}
162
163 {* contribution recurring search *}
164 <tr>
165 <td colspan="2">
166 {include file="CRM/Contribute/Form/Search/ContributionRecur.tpl"}
167 </td>
168 </tr>
169
170 {if $contributeGroupTree}
171 <tr>
172 <td colspan="2">
173 {include file="CRM/Custom/Form/Search.tpl" groupTree=$contributeGroupTree showHideLinks=false}</td>
174 </tr>
175 {/if}
176
177 {literal}
178 <script type="text/javascript">
179 cj('#contribution_payment_instrument_id').change(function() {
180 if (cj(this).val() == '4') {
181 cj('#contribution_check_number_wrapper').show();
182 }
183 else {
184 cj('#contribution_check_number_wrapper').hide();
185 cj('#contribution_check_number').val('');
186 }
187 }).change();
188 cj('#contribution_or_softcredits').change(function() {
189 if (cj(this).val() == 'only_contribs') {
190 cj('#contribution_soft_credit_type_wrapper').hide();
191 cj('#contribution_soft_credit_type_id').val('');
192 }
193 else {
194 cj('#contribution_soft_credit_type_wrapper').show();
195 }
196 }).change();
197 </script>
198 {/literal}