Fix template structures
[civicrm-core.git] / templates / CRM / Contribute / Form / Search.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2018 |
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 {include file="CRM/Contact/Form/Search/ContactSearchFields.tpl"}
38 {include file="CRM/Contribute/Form/Search/Common.tpl"}
39 <tr>
40 <td colspan="2">{$form.buttons.html}</td>
41 </tr>
42 </table>
43 {/strip}
44 </div><!-- /.crm-accordion-body -->
45 </div><!-- /.crm-accordion-wrapper -->
46 </div><!-- /.crm-form-block -->
47 {if $rowsEmpty || $rows}
48 <div class="crm-content-block">
49 {if $rowsEmpty}
50 <div class="crm-results-block crm-results-block-empty">
51 {include file="CRM/Contribute/Form/Search/EmptyResults.tpl"}
52 </div>
53 {/if}
54
55 {if $rows}
56 <div class="crm-results-block">
57 {* Search request has returned 1 or more matching rows. *}
58 {* This section handles form elements for action task select and submit *}
59 <div class="crm-search-tasks crm-event-search-tasks">
60 {include file="CRM/common/searchResultTasks.tpl" context="Contribution"}
61 </div>
62
63 {* This section displays the rows along and includes the paging controls *}
64 <div id="contributionSearch" class="crm-search-results">
65 {include file="CRM/Contribute/Form/Selector.tpl" context="Search"}
66 </div>
67 {* END Actions/Results section *}
68 </div>
69 {/if}
70
71 </div>
72 {/if}
73