| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
| 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 criteria form elements - Find Contacts *} |
| 27 | |
| 28 | {* Set title for search criteria accordion *} |
| 29 | {capture assign=editTitle}{ts}Edit Search Criteria{/ts}{/capture} |
| 30 | |
| 31 | {strip} |
| 32 | <div class="crm-block crm-form-block crm-basic-criteria-form-block"> |
| 33 | <div class="crm-accordion-wrapper crm-case_search-accordion {if $rows}collapsed{/if}"> |
| 34 | <div class="crm-accordion-header crm-master-accordion-header"> |
| 35 | {$editTitle} |
| 36 | </div><!-- /.crm-accordion-header --> |
| 37 | <div class="crm-accordion-body"> |
| 38 | <div class="crm-section sort_name-section"> |
| 39 | <div class="label"> |
| 40 | {$form.sort_name.label} |
| 41 | </div> |
| 42 | <div class="content"> |
| 43 | {$form.sort_name.html} |
| 44 | </div> |
| 45 | <div class="clear"></div> |
| 46 | </div> |
| 47 | |
| 48 | {if $form.contact_type} |
| 49 | <div class="crm-section contact_type-section"> |
| 50 | <div class="label"> |
| 51 | {$form.contact_type.label} |
| 52 | </div> |
| 53 | <div class="content"> |
| 54 | {$form.contact_type.html} |
| 55 | </div> |
| 56 | <div class="clear"></div> |
| 57 | </div> |
| 58 | {/if} |
| 59 | |
| 60 | {if $form.group} |
| 61 | <div class="crm-section group_selection-section"> |
| 62 | <div class="label"> |
| 63 | {$form.group.label} |
| 64 | </div> |
| 65 | <div class="content"> |
| 66 | {$form.group.html|crmAddClass:big} |
| 67 | </div> |
| 68 | <div class="clear"></div> |
| 69 | </div> |
| 70 | {/if} |
| 71 | |
| 72 | {if $form.tag} |
| 73 | <div class="crm-section tag-section"> |
| 74 | <div class="label"> |
| 75 | {$form.tag.label} |
| 76 | </div> |
| 77 | <div class="content"> |
| 78 | {$form.tag.html|crmAddClass:medium} |
| 79 | </div> |
| 80 | <div class="clear"></div> |
| 81 | </div> |
| 82 | {/if} |
| 83 | |
| 84 | {* Choose regular or 'tall' listing-box class for Group select box based on # of groups. *} |
| 85 | {if $form.custom_group|@count GT 8} |
| 86 | {assign var="boxClass" value="listing-box-tall"} |
| 87 | {else} |
| 88 | {assign var="boxClass" value="listing-box"} |
| 89 | {/if} |
| 90 | <div class="crm-section crm-contact-custom-search-multipleValues-form-block-custom_group"> |
| 91 | <div class="label"> |
| 92 | {ts}Custom Group(s){/ts} |
| 93 | </div> |
| 94 | <div class="content"> |
| 95 | <div class="{$boxClass}"> |
| 96 | {foreach from=$form.custom_group item="group_val"} |
| 97 | <div class="{cycle values="even-row,odd-row"}"> |
| 98 | {$group_val.html} |
| 99 | </div> |
| 100 | {/foreach} |
| 101 | </div> |
| 102 | </div> |
| 103 | </div> |
| 104 | |
| 105 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div> |
| 106 | </div><!-- /.crm-accordion-body --> |
| 107 | </div><!-- /.crm-accordion-wrapper --> |
| 108 | </div><!-- /.crm-form-block --> |
| 109 | {/strip} |