whitespace only
[civicrm-core.git] / templates / CRM / Contact / Form / Search / Criteria / Basic.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
2c4c49ca 3 | CiviCRM version 4.7 |
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<table class="form-layout">
27 <tr>
28 <td><label>{ts}Complete OR Partial Name{/ts}</label><br />
29 {$form.sort_name.html}
30 </td>
31 <td>
32 <label>{ts}Complete OR Partial Email{/ts}</label><br />
33 {$form.email.html}
34 </td>
dc197670 35 <td class="adv-search-top-submit" colspan="2">
cbe90025
PN
36 <div class="crm-submit-buttons">
37 {include file="CRM/common/formButtons.tpl" location="top"}
38 </div>
39 <div class="crm-submit-buttons reset-advanced-search">
dc197670 40 <a href="{crmURL p='civicrm/contact/search/advanced' q='reset=1'}" id="resetAdvancedSearch" class="crm-hover-button css_right" title="{ts}Clear all search criteria{/ts}">
41d0b881 41 <i class="crm-i fa-undo"></i>
cbe90025
PN
42 {ts}Reset Form{/ts}
43 </a>
44 </div>
45 </td>
46 </tr>
6a488035
TO
47 <tr>
48 {if $form.contact_type}
584032b4 49 <td><label>{ts}Contact Type(s){/ts}</label><br />
50 {$form.contact_type.html}
51 </td>
6a488035
TO
52 {else}
53 <td>&nbsp;</td>
54 {/if}
55 {if $form.group}
56 <td>
12fbb7b3 57 <div id='groupselect'><label>{ts}Group(s){/ts} <span class="description">(<a href="#" id='searchbygrouptype'>{ts}search by group type{/ts}</a>)</span></label>
f5e4ef82 58 <br />
6a488035 59 {$form.group.html}
6a488035
TO
60 </div>
61 <div id='grouptypeselect'>
12fbb7b3 62 <label>{ts}Group Type(s){/ts} <span class="description"> (<a href="#" id='searchbygroup'>{ts}search by group{/ts}</a>)</span></label>
f5e4ef82 63 <br />
6a488035
TO
64 {$form.group_type.html}
65 {literal}
66 <script type="text/javascript">
3cc60a06 67 CRM.$(function($) {
12fbb7b3 68 function showGroupSearch() {
ae8f569f
CW
69 $('#grouptypeselect').hide();
70 $('#groupselect').show();
71 $('#group_type').select2('val', '');
12fbb7b3 72 return false;
02ddf039 73 }
12fbb7b3 74 function showGroupTypeSearch() {
ae8f569f
CW
75 $('#groupselect').hide();
76 $('#grouptypeselect').show();
77 $('#group').select2('val', '');
12fbb7b3 78 return false;
02ddf039 79 }
12fbb7b3
CW
80 $('#searchbygrouptype').click(showGroupTypeSearch);
81 $('#searchbygroup').click(showGroupSearch);
6a488035 82
ae8f569f 83 if ($('#group_type').val() ) {
6a488035
TO
84 showGroupTypeSearch();
85 }
86 else {
87 showGroupSearch();
88 }
89
90 });
91 </script>
92 {/literal}
93 </div>
94 </td>
95 {else}
96 <td>&nbsp;</td>
97 {/if}
6a488035
TO
98 </tr>
99 <tr>
100 {if $form.contact_tags}
101 <td><label>{ts}Select Tag(s){/ts}</label>
102 {$form.contact_tags.html}
6a488035
TO
103 </td>
104 {else}
105 <td>&nbsp;</td>
106 {/if}
107 {if $isTagset}
6d538af3 108 <td colspan="2">{include file="CRM/common/Tagset.tpl"}</td>
6a488035 109 {/if}
8a4f27dc 110 <td>{$form.tag_search.label} {help id="id-all-tags"}<br />{$form.tag_search.html}</td>
6a488035
TO
111 {if ! $isTagset}
112 <td colspan="2">&nbsp;</td>
113 {/if}
114 <td>&nbsp;</td>
115 </tr>
116 {if $form.all_tag_types}
117 <tr>
118 <td colspan="5">
119 {$form.all_tag_types.html} {$form.all_tag_types.label} {help id="id-all-tag-types"}
120 </td>
121 </tr>
122 {/if}
123 <tr>
124 <td>
125 <div>
126 {$form.phone_numeric.label}<br />{$form.phone_numeric.html}
127 </div>
128 <div class="description font-italic">
129 {ts}Punctuation and spaces are ignored.{/ts}
130 </div>
131 </td>
132 <td>{$form.phone_location_type_id.label}<br />{$form.phone_location_type_id.html}</td>
133 <td>{$form.phone_phone_type_id.label}<br />{$form.phone_phone_type_id.html}</td>
134 </tr>
135 <tr>
136 <td colspan="2">
137 <table class="form-layout-compressed">
138 <tr>
139 <td colspan="2">
140 {$form.privacy_toggle.html} {help id="id-privacy"}
141 </td>
142 </tr>
143 <tr>
144 <td>
145 {$form.privacy_options.html}
146 </td>
147 <td style="vertical-align:middle">
148 <div id="privacy-operator-wrapper">{$form.privacy_operator.html} {help id="privacy-operator"}</div>
149 </td>
150 </tr>
151 </table>
152 {literal}
153 <script type="text/javascript">
6a488035 154 cj("select#privacy_options").change(function() {
02ddf039 155 if (cj(this).val() && cj(this).val().length > 1) {
6a488035
TO
156 cj('#privacy-operator-wrapper').show();
157 } else {
158 cj('#privacy-operator-wrapper').hide();
159 }
160 }).change();
161 </script>
162 {/literal}
163 </td>
164 <td colspan="3">
165 {$form.preferred_communication_method.label}<br />
166 {$form.preferred_communication_method.html}<br />
167 <div class="spacer"></div>
168 {$form.email_on_hold.html} {$form.email_on_hold.label}
169 </td>
170 </tr>
171 <tr>
172 <td>
173 {$form.contact_source.label} {help id="id-source" file="CRM/Contact/Form/Contact"}<br />
174 {$form.contact_source.html}
175 </td>
176 <td>
177 {if $form.uf_user}
4a143c04 178 {$form.uf_user.label} {$form.uf_user.html}
6a488035
TO
179 <div class="description font-italic">
180 {ts 1=$config->userFramework}Does the contact have a %1 Account?{/ts}
181 </div>
182 {else}
183 &nbsp;
184 {/if}
185 </td>
186 <td>
187 {$form.job_title.label}<br />
188 {$form.job_title.html}
189 </td>
190 </tr>
191 <tr>
192 <td>
c8ef633b
DL
193 {$form.contact_id.label} {help id="id-internal-id" file="CRM/Contact/Form/Contact"}<br />
194 {$form.contact_id.html}
6a488035
TO
195 </td>
196 <td>
197 {$form.external_identifier.label} {help id="id-external-id" file="CRM/Contact/Form/Contact"}<br />
198 {$form.external_identifier.html}
199 </td>
200 <td colspan="3">
201 {$form.preferred_language.label}<br />
202 {$form.preferred_language.html}
203 </td>
204 </tr>
661e454b
CW
205 <tr>
206 <td colspan="5">
207 <fieldset>
208 <legend>{ts}Search Settings{/ts}</legend>
209 <table>
210 <tr>
211 <td>
212 {$form.uf_group_id.label} {help id="id-search-views"}<br />{$form.uf_group_id.html}
213 </td>
214 <td>
215 {if $form.component_mode}
216 {$form.component_mode.label} {help id="id-display-results"}
217 <br />
218 {$form.component_mode.html}
219 {if $form.display_relationship_type}
220 <div id="crm-display_relationship_type">{$form.display_relationship_type.html}</div>
221 {/if}
222 {else}
223 &nbsp;
224 {/if}
225 </td>
226 <td>{$form.operator.label} {help id="id-search-operator"}<br />{$form.operator.html}</td>
227 <td>
228 {if $form.deleted_contacts}{$form.deleted_contacts.html} {$form.deleted_contacts.label}{/if}
229 </td>
230 </tr>
231 </table>
232 </fieldset>
233 </td>
234 </tr>
6a488035 235</table>