Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {* Search form and results for CiviCase componenet (Find Cases) *} | |
11 | {if $notConfigured} {* Case types not present. Component is not configured for use. *} | |
12 | {include file="CRM/Case/Page/ConfigureError.tpl"} | |
13 | {else} | |
14 | ||
15 | <div class="crm-block crm-form-block crm-case-search-form-block"> | |
16 | <div class="crm-accordion-wrapper crm-case_search-accordion {if $rows}collapsed{/if}"> | |
17 | <div class="crm-accordion-header crm-master-accordion-header"> | |
18 | {ts}Edit Search Criteria{/ts} | |
19 | </div><!-- /.crm-accordion-header --> | |
20 | <div class="crm-accordion-body"> | |
21 | {strip} | |
22 | <table class="form-layout"> | |
23 | <tr class="crm-case-search-form-block-sort_name"> | |
f212d37d CW |
24 | <td class="font-size12pt" colspan="2"> |
25 | {$form.sort_name.label} {$form.sort_name.html|crmAddClass:'twenty'} | |
6a488035 | 26 | </td> |
f212d37d | 27 | <td>{include file="CRM/common/formButtons.tpl" location="top"}</td> |
6a488035 TO |
28 | </tr> |
29 | {include file="CRM/Case/Form/Search/Common.tpl"} | |
30 | ||
31 | <tr> | |
68592807 | 32 | <td colspan="3" class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</td> |
6a488035 TO |
33 | </tr> |
34 | </table> | |
35 | {/strip} | |
36 | </div><!-- /.crm-accordion-body --> | |
37 | </div><!-- /.crm-accordion-wrapper --> | |
38 | </div><!-- /.crm-form-block --> | |
39 | {if $rowsEmpty || $rows} | |
40 | <div class="crm-content-block"> | |
41 | {if $rowsEmpty} | |
42 | <div class="crm-results-block crm-results-block-empty"> | |
43 | {include file="CRM/Case/Form/Search/EmptyResults.tpl"} | |
44 | </div> | |
45 | {/if} | |
46 | ||
47 | {if $rows} | |
48 | <div class="crm-results-block"> | |
49 | {* Search request has returned 1 or more matching rows. Display results and collapse the search criteria fieldset. *} | |
50 | ||
51 | {* Search request has returned 1 or more matching rows. *} | |
52 | ||
53 | {* This section handles form elements for action task select and submit *} | |
54 | <div class="crm-search-tasks"> | |
55 | {include file="CRM/common/searchResultTasks.tpl"} | |
56 | </div> | |
57 | ||
58 | {* This section displays the rows along and includes the paging controls *} | |
59 | <div class="crm-search-results"> | |
60 | {include file="CRM/Case/Form/Selector.tpl" context="Search"} | |
61 | </div> | |
62 | {* END Actions/Results section *} | |
63 | </div> | |
64 | {/if} | |
65 | </div> | |
66 | {/if} | |
6a488035 | 67 | {/if} |