fix header
[civicrm-core.git] / templates / CRM / Contact / Form / Search / Criteria / Basic.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
2c4c49ca 3 | CiviCRM version 4.7 |
6a488035 4 +--------------------------------------------------------------------+
8c9251b3 5 | Copyright CiviCRM LLC (c) 2004-2018 |
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>
e2b3c0e3 35 {if $form.contact_type}
36 <td><label>{ts}Contact Type(s){/ts}</label><br />
37 {$form.contact_type.html}
38 </td>
39 {else}
40 <td>&nbsp;</td>
41 {/if}
cbe90025 42 </tr>
6a488035 43 <tr>
6a488035
TO
44 {if $form.group}
45 <td>
12fbb7b3 46 <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 47 <br />
6a488035 48 {$form.group.html}
6a488035
TO
49 </div>
50 <div id='grouptypeselect'>
12fbb7b3 51 <label>{ts}Group Type(s){/ts} <span class="description"> (<a href="#" id='searchbygroup'>{ts}search by group{/ts}</a>)</span></label>
f5e4ef82 52 <br />
6a488035
TO
53 {$form.group_type.html}
54 {literal}
55 <script type="text/javascript">
3cc60a06 56 CRM.$(function($) {
12fbb7b3 57 function showGroupSearch() {
ae8f569f
CW
58 $('#grouptypeselect').hide();
59 $('#groupselect').show();
60 $('#group_type').select2('val', '');
12fbb7b3 61 return false;
02ddf039 62 }
12fbb7b3 63 function showGroupTypeSearch() {
ae8f569f
CW
64 $('#groupselect').hide();
65 $('#grouptypeselect').show();
66 $('#group').select2('val', '');
12fbb7b3 67 return false;
02ddf039 68 }
12fbb7b3
CW
69 $('#searchbygrouptype').click(showGroupTypeSearch);
70 $('#searchbygroup').click(showGroupSearch);
6a488035 71
ae8f569f 72 if ($('#group_type').val() ) {
6a488035
TO
73 showGroupTypeSearch();
74 }
75 else {
76 showGroupSearch();
77 }
78
79 });
80 </script>
81 {/literal}
82 </div>
83 </td>
84 {else}
85 <td>&nbsp;</td>
86 {/if}
6a488035
TO
87 {if $form.contact_tags}
88 <td><label>{ts}Select Tag(s){/ts}</label>
89 {$form.contact_tags.html}
6a488035
TO
90 </td>
91 {else}
92 <td>&nbsp;</td>
93 {/if}
94 {if $isTagset}
6d538af3 95 <td colspan="2">{include file="CRM/common/Tagset.tpl"}</td>
6a488035 96 {/if}
8a4f27dc 97 <td>{$form.tag_search.label} {help id="id-all-tags"}<br />{$form.tag_search.html}</td>
6a488035
TO
98 {if ! $isTagset}
99 <td colspan="2">&nbsp;</td>
100 {/if}
101 <td>&nbsp;</td>
102 </tr>
103 {if $form.all_tag_types}
104 <tr>
105 <td colspan="5">
106 {$form.all_tag_types.html} {$form.all_tag_types.label} {help id="id-all-tag-types"}
107 </td>
108 </tr>
109 {/if}
110 <tr>
111 <td>
112 <div>
113 {$form.phone_numeric.label}<br />{$form.phone_numeric.html}
114 </div>
115 <div class="description font-italic">
116 {ts}Punctuation and spaces are ignored.{/ts}
117 </div>
118 </td>
119 <td>{$form.phone_location_type_id.label}<br />{$form.phone_location_type_id.html}</td>
120 <td>{$form.phone_phone_type_id.label}<br />{$form.phone_phone_type_id.html}</td>
121 </tr>
122 <tr>
123 <td colspan="2">
124 <table class="form-layout-compressed">
125 <tr>
126 <td colspan="2">
127 {$form.privacy_toggle.html} {help id="id-privacy"}
128 </td>
129 </tr>
130 <tr>
131 <td>
132 {$form.privacy_options.html}
133 </td>
134 <td style="vertical-align:middle">
135 <div id="privacy-operator-wrapper">{$form.privacy_operator.html} {help id="privacy-operator"}</div>
136 </td>
137 </tr>
138 </table>
139 {literal}
140 <script type="text/javascript">
6a488035 141 cj("select#privacy_options").change(function() {
02ddf039 142 if (cj(this).val() && cj(this).val().length > 1) {
6a488035
TO
143 cj('#privacy-operator-wrapper').show();
144 } else {
145 cj('#privacy-operator-wrapper').hide();
146 }
147 }).change();
148 </script>
149 {/literal}
150 </td>
151 <td colspan="3">
152 {$form.preferred_communication_method.label}<br />
153 {$form.preferred_communication_method.html}<br />
154 <div class="spacer"></div>
155 {$form.email_on_hold.html} {$form.email_on_hold.label}
156 </td>
157 </tr>
158 <tr>
159 <td>
160 {$form.contact_source.label} {help id="id-source" file="CRM/Contact/Form/Contact"}<br />
161 {$form.contact_source.html}
162 </td>
6a488035
TO
163 <td>
164 {$form.job_title.label}<br />
165 {$form.job_title.html}
166 </td>
e2b3c0e3 167 <td colspan="3">
168 {$form.preferred_language.label}<br />
169 {$form.preferred_language.html}
170 </td>
6a488035
TO
171 </tr>
172 <tr>
173 <td>
c8ef633b
DL
174 {$form.contact_id.label} {help id="id-internal-id" file="CRM/Contact/Form/Contact"}<br />
175 {$form.contact_id.html}
6a488035
TO
176 </td>
177 <td>
178 {$form.external_identifier.label} {help id="id-external-id" file="CRM/Contact/Form/Contact"}<br />
179 {$form.external_identifier.html}
180 </td>
e2b3c0e3 181 <td>
182 {if $form.uf_user}
183 {$form.uf_user.label} {$form.uf_user.html}
184 <div class="description font-italic">
185 {ts 1=$config->userFramework}Does the contact have a %1 Account?{/ts}
186 </div>
187 {else}
188 &nbsp;
189 {/if}
661e454b
CW
190 </td>
191 </tr>
6a488035 192</table>