| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.6 | |
| 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 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="2"> |
| 41 | {$form.sort_name.label} {$form.sort_name.html|crmAddClass:'twenty'} |
| 42 | </td> |
| 43 | <td>{include file="CRM/common/formButtons.tpl" location="top"}</td> |
| 44 | </tr> |
| 45 | {include file="CRM/Case/Form/Search/Common.tpl"} |
| 46 | |
| 47 | <tr> |
| 48 | <td colspan="2" class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</td> |
| 49 | </tr> |
| 50 | </table> |
| 51 | {/strip} |
| 52 | </div><!-- /.crm-accordion-body --> |
| 53 | </div><!-- /.crm-accordion-wrapper --> |
| 54 | </div><!-- /.crm-form-block --> |
| 55 | {if $rowsEmpty || $rows} |
| 56 | <div class="crm-content-block"> |
| 57 | {if $rowsEmpty} |
| 58 | <div class="crm-results-block crm-results-block-empty"> |
| 59 | {include file="CRM/Case/Form/Search/EmptyResults.tpl"} |
| 60 | </div> |
| 61 | {/if} |
| 62 | |
| 63 | {if $rows} |
| 64 | <div class="crm-results-block"> |
| 65 | {* Search request has returned 1 or more matching rows. Display results and collapse the search criteria fieldset. *} |
| 66 | |
| 67 | {* Search request has returned 1 or more matching rows. *} |
| 68 | |
| 69 | {* This section handles form elements for action task select and submit *} |
| 70 | <div class="crm-search-tasks"> |
| 71 | {include file="CRM/common/searchResultTasks.tpl"} |
| 72 | </div> |
| 73 | |
| 74 | {* This section displays the rows along and includes the paging controls *} |
| 75 | <div class="crm-search-results"> |
| 76 | {include file="CRM/Case/Form/Selector.tpl" context="Search"} |
| 77 | </div> |
| 78 | {* END Actions/Results section *} |
| 79 | </div> |
| 80 | {/if} |
| 81 | </div> |
| 82 | {/if} |
| 83 | {/if} |