Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
6a488035 TO |
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 | {if $context EQ 'smog'} | |
30 | {capture assign=editTitle}{ts}Find Contacts within this Group{/ts}{/capture} | |
31 | {elseif $context EQ 'amtg' AND !$rows} | |
32 | {capture assign=editTitle}{ts}Find Contacts to Add to this Group{/ts}{/capture} | |
33 | {else} | |
34 | {capture assign=editTitle}{ts}Edit Search Criteria{/ts}{/capture} | |
35 | {/if} | |
36 | ||
37 | {strip} | |
38 | <div class="crm-block crm-form-block crm-basic-criteria-form-block"> | |
39 | <div class="crm-accordion-wrapper crm-case_search-accordion {if $rows}collapsed{/if}"> | |
40 | <div class="crm-accordion-header crm-master-accordion-header"> | |
41 | {$editTitle} | |
42 | </div><!-- /.crm-accordion-header --> | |
43 | <div class="crm-accordion-body"> | |
44 | <div class="crm-section sort_name-section"> | |
45 | <div class="label"> | |
46 | {$form.sort_name.label} | |
47 | </div> | |
48 | <div class="content"> | |
49 | {$form.sort_name.html} | |
50 | </div> | |
51 | <div class="clear"></div> | |
52 | </div> | |
53 | ||
54 | {if $form.contact_type} | |
55 | <div class="crm-section contact_type-section"> | |
56 | <div class="label"> | |
57 | {$form.contact_type.label} | |
58 | </div> | |
59 | <div class="content"> | |
60 | {$form.contact_type.html} | |
61 | </div> | |
62 | <div class="clear"></div> | |
63 | </div> | |
64 | {/if} | |
65 | ||
66 | {if $form.group} | |
67 | <div class="crm-section group_selection-section"> | |
68 | <div class="label"> | |
69 | {if $context EQ 'smog'} | |
70 | {$form.group_contact_status.label} | |
71 | {else} | |
72 | {ts}in{/ts} | |
73 | {/if} | |
74 | </div> | |
75 | <div class="content"> | |
76 | {if $context EQ 'smog'} | |
77 | {$form.group_contact_status.html} | |
78 | {else} | |
79 | {$form.group.html|crmAddClass:big} | |
80 | {/if} | |
81 | </div> | |
82 | <div class="clear"></div> | |
83 | </div> | |
84 | {/if} | |
85 | ||
86 | {if $form.tag} | |
87 | <div class="crm-section tag-section"> | |
88 | <div class="label"> | |
89 | {$form.tag.label} | |
90 | </div> | |
91 | <div class="content"> | |
92 | {$form.tag.html|crmAddClass:medium} | |
93 | </div> | |
94 | <div class="clear"></div> | |
95 | </div> | |
96 | {/if} | |
97 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div> | |
98 | </div><!-- /.crm-accordion-body --> | |
99 | </div><!-- /.crm-accordion-wrapper --> | |
100 | </div><!-- /.crm-form-block --> | |
101 | {/strip} |