Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.3 | | |
4 | +--------------------------------------------------------------------+ | |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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 | {* Search form and results for Contributions *} | |
27 | {assign var="showBlock" value="'searchForm'"} | |
28 | {assign var="hideBlock" value="'searchForm_show'"} | |
29 | <div class="crm-block crm-form-block crm-contribution-search-form-block"> | |
30 | <div class="crm-accordion-wrapper crm-contribution_search_form-accordion {if $rows}collapsed{/if}"> | |
31 | <div class="crm-accordion-header crm-master-accordion-header"> | |
32 | {ts}Edit Search Criteria{/ts} | |
33 | </div><!-- /.crm-accordion-header --> | |
34 | <div class="crm-accordion-body"> | |
35 | {strip} | |
36 | <table class="form-layout"> | |
37 | <tr> | |
38 | <td class="font-size12pt" colspan="2"> {$form.sort_name.label} {$form.sort_name.html|crmAddClass:'twenty'} {$form.buttons.html} | |
39 | </td> | |
40 | </tr> | |
41 | <tr> | |
42 | {if $form.contact_tags} | |
43 | <td><label>{ts}Contributor Tag(s){/ts}</label> | |
44 | {$form.contact_tags.html} | |
45 | {literal} | |
46 | <script type="text/javascript"> | |
47 | ||
48 | cj("select#contact_tags").crmasmSelect({ | |
49 | addItemTarget: 'bottom', | |
50 | animate: false, | |
51 | highlight: true, | |
52 | sortable: true, | |
53 | respectParents: true | |
54 | }); | |
55 | </script> | |
56 | {/literal} | |
57 | </td> | |
58 | {else} | |
59 | <td> </td> | |
60 | {/if} | |
61 | ||
62 | {if $form.group} | |
63 | <td><label>{ts}Contributor Group(s){/ts}</label> | |
64 | {$form.group.html} | |
65 | {literal} | |
66 | <script type="text/javascript"> | |
67 | cj("select#group").crmasmSelect({ | |
68 | addItemTarget: 'bottom', | |
69 | animate: false, | |
70 | highlight: true, | |
71 | sortable: true, | |
72 | respectParents: true | |
73 | }); | |
74 | ||
75 | </script> | |
76 | {/literal} | |
77 | </td> | |
78 | {else} | |
79 | <td> </td> | |
80 | {/if} | |
81 | </tr> | |
82 | {include file="CRM/Contribute/Form/Search/Common.tpl"} | |
83 | <tr> | |
84 | <td colspan="2">{$form.buttons.html}</td> | |
85 | </tr> | |
86 | </table> | |
87 | {/strip} | |
88 | </div><!-- /.crm-accordion-body --> | |
89 | </div><!-- /.crm-accordion-wrapper --> | |
90 | </div><!-- /.crm-form-block --> | |
91 | {if $rowsEmpty || $rows} | |
92 | <div class="crm-content-block"> | |
93 | {if $rowsEmpty} | |
94 | <div class="crm-results-block crm-results-block-empty"> | |
95 | {include file="CRM/Contribute/Form/Search/EmptyResults.tpl"} | |
96 | </div> | |
97 | {/if} | |
98 | ||
99 | {if $rows} | |
100 | <div class="crm-results-block"> | |
101 | {* Search request has returned 1 or more matching rows. *} | |
102 | {* This section handles form elements for action task select and submit *} | |
103 | <div class="crm-search-tasks crm-event-search-tasks"> | |
104 | {include file="CRM/common/searchResultTasks.tpl" context="Contribution"} | |
105 | </div> | |
106 | ||
107 | {* This section displays the rows along and includes the paging controls *} | |
108 | <div id="contributionSearch" class="crm-search-results"> | |
109 | {include file="CRM/Contribute/Form/Selector.tpl" context="Search"} | |
110 | </div> | |
111 | {* END Actions/Results section *} | |
112 | </div> | |
113 | {/if} | |
114 | ||
115 | </div> | |
116 | {/if} | |
117 | {literal} | |
118 | <script type="text/javascript"> | |
119 | cj(function() { | |
120 | cj().crmAccordions(); | |
121 | }); | |
122 | </script> | |
123 | {/literal} | |
124 |