CRM-14408 - get rid of unnecessary calls to crmAccordions
[civicrm-core.git] / templates / CRM / Contribute / Form / Search.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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}&nbsp;&nbsp;{$form.sort_name.html|crmAddClass:'twenty'}&nbsp;&nbsp;&nbsp;{$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 </td>
46 {else}
47 <td>&nbsp;</td>
48 {/if}
49
50 {if $form.group}
51 <td><label>{ts}Contributor Group(s){/ts}</label>
52 {$form.group.html}
53 </td>
54 {else}
55 <td>&nbsp;</td>
56 {/if}
57 </tr>
58 {include file="CRM/Contribute/Form/Search/Common.tpl"}
59 <tr>
60 <td colspan="2">{$form.buttons.html}</td>
61 </tr>
62 </table>
63 {/strip}
64 </div><!-- /.crm-accordion-body -->
65 </div><!-- /.crm-accordion-wrapper -->
66 </div><!-- /.crm-form-block -->
67 {if $rowsEmpty || $rows}
68 <div class="crm-content-block">
69 {if $rowsEmpty}
70 <div class="crm-results-block crm-results-block-empty">
71 {include file="CRM/Contribute/Form/Search/EmptyResults.tpl"}
72 </div>
73 {/if}
74
75 {if $rows}
76 <div class="crm-results-block">
77 {* Search request has returned 1 or more matching rows. *}
78 {* This section handles form elements for action task select and submit *}
79 <div class="crm-search-tasks crm-event-search-tasks">
80 {include file="CRM/common/searchResultTasks.tpl" context="Contribution"}
81 </div>
82
83 {* This section displays the rows along and includes the paging controls *}
84 <div id="contributionSearch" class="crm-search-results">
85 {include file="CRM/Contribute/Form/Selector.tpl" context="Search"}
86 </div>
87 {* END Actions/Results section *}
88 </div>
89 {/if}
90
91 </div>
92 {/if}
93