Merge pull request #1105 from colemanw/prevNext
[civicrm-core.git] / templates / CRM / Case / Form / Search.tpl
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 CiviCase componenet (Find Cases) *}
27 {if $notConfigured} {* Case types not present. Component is not configured for use. *}
28 {include file="CRM/Case/Page/ConfigureError.tpl"}
29 {else}
30
31 <div class="crm-block crm-form-block crm-case-search-form-block">
32 <div class="crm-accordion-wrapper crm-case_search-accordion {if $rows}collapsed{/if}">
33 <div class="crm-accordion-header crm-master-accordion-header">
34 {ts}Edit Search Criteria{/ts}
35 </div><!-- /.crm-accordion-header -->
36 <div class="crm-accordion-body">
37 {strip}
38 <table class="form-layout">
39 <tr class="crm-case-search-form-block-sort_name">
40 <td class="font-size12pt" colspan="3">
41 {$form.sort_name.label}&nbsp;&nbsp;{$form.sort_name.html|crmAddClass:'twenty'}&nbsp;&nbsp;&nbsp;{$form.buttons.html}
42 </td>
43 </tr>
44 {include file="CRM/Case/Form/Search/Common.tpl"}
45
46 <tr>
47 <td colspan="2" class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</td>
48 </tr>
49 </table>
50 {/strip}
51 </div><!-- /.crm-accordion-body -->
52 </div><!-- /.crm-accordion-wrapper -->
53 </div><!-- /.crm-form-block -->
54 {if $rowsEmpty || $rows}
55 <div class="crm-content-block">
56 {if $rowsEmpty}
57 <div class="crm-results-block crm-results-block-empty">
58 {include file="CRM/Case/Form/Search/EmptyResults.tpl"}
59 </div>
60 {/if}
61
62 {if $rows}
63 <div class="crm-results-block">
64 {* Search request has returned 1 or more matching rows. Display results and collapse the search criteria fieldset. *}
65
66 {* Search request has returned 1 or more matching rows. *}
67
68 {* This section handles form elements for action task select and submit *}
69 <div class="crm-search-tasks">
70 {include file="CRM/common/searchResultTasks.tpl"}
71 </div>
72
73 {* This section displays the rows along and includes the paging controls *}
74 <div class="crm-search-results">
75 {include file="CRM/Case/Form/Selector.tpl" context="Search"}
76 </div>
77 {* END Actions/Results section *}
78 </div>
79 {/if}
80 </div>
81 {/if}
82 {literal}
83 <script type="text/javascript">
84 cj(function() {
85 cj().crmAccordions();
86 });
87 </script>
88 {/literal}
89 {/if}