CRM-14408 - get rid of unnecessary calls to crmAccordions
[civicrm-core.git] / templates / CRM / Grant / 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
27 <div class="crm-block crm-form-block crm-search-form-block">
28 <div class="crm-accordion-wrapper crm-member_search_form-accordion {if $rows}collapsed{/if}">
29 <div class="crm-accordion-header crm-master-accordion-header">
30 {ts}Edit Search Criteria{/ts}
31 </div><!-- /.crm-accordion-header -->
32 <div class="crm-accordion-body">
33 {strip}
34 <div id="help">
35 {ts}Use this form to find Grant(s) by Contact name, Grant Status, Grant Type, Total Amount , etc .{/ts}
36 </div>
37 <table class="form-layout">
38 <tr>
39 <td class="font-size12pt" colspan="3">
40 {$form.sort_name.label}&nbsp;&nbsp;{$form.sort_name.html|crmReplace:class:'twenty'}&nbsp;&nbsp;&nbsp;{$form.buttons.html}<br />
41 </td>
42 </tr>
43
44 {include file="CRM/Grant/Form/Search/Common.tpl"}
45
46 </table>
47 {/strip}
48 </div><!-- /.crm-accordion-body -->
49 </div><!-- /.crm-accordion-wrapper -->
50 </div><!-- /.crm-form-block -->
51
52 <div class="crm-content-block">
53 {if $rowsEmpty}
54 <div class="crm-results-block crm-results-block-empty">
55 {include file="CRM/Grant/Form/Search/EmptyResults.tpl"}
56 </div>
57 {/if}
58
59 {if $rows}
60 {* Search request has returned 1 or more matching rows. Display results and collapse the search criteria fieldset. *}
61 <div class="crm-results-block">
62 {* This section handles form elements for action task select and submit *}
63 <div class="crm-search-tasks">
64 {include file="CRM/common/searchResultTasks.tpl"}
65 </div>
66 {* This section displays the rows along and includes the paging controls *}
67 <div class="crm-search-results">
68 {include file="CRM/Grant/Form/Selector.tpl" context="Search"}
69 </div>
70 </div><!-- /.crm-results-block -->
71 {/if}
72 </div><!-- /.crm-content-block -->