Make all Individual name fields configurable
[civicrm-core.git] / templates / CRM / Admin / Form / Preferences / Display.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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 {* this template is used for editing Site Preferences *}
27 <div class="crm-block crm-form-block crm-preferences-display-form-block">
28 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
29 <table class="form-layout">
30 <tr class="crm-preferences-display-form-block-contact_view_options">
31 <td class="label">{$form.contact_view_options.label}</td>
32 <td>{$form.contact_view_options.html}</td>
33 </tr>
34 <tr class="crm-preferences-display-form-block-description">
35 <td>&nbsp;</td>
36 <td class="description">
37 {capture assign=crmURL}{crmURL p='civicrm/admin/setting/component' q='action=add&reset=1'}{/capture}
38 {ts 1=$crmURL}Select the <strong>tabs</strong>
39 that should be displayed when viewing a contact record. EXAMPLE: If your organization does not keep track of
40 'Relationships', then un-check this option to simplify the screen display. Tabs for Contributions, Pledges,
41 Memberships, Events, Grants and Cases are also hidden if the corresponding component is not enabled. Go to
42 <a href="%1">Administer > System Settings > Enable Components</a>
43 to modify the components which are available for your site.{/ts}
44 </td>
45 </tr>
46 <tr class="crm-preferences-display-form-block-contact_smart_group_display">
47 <td class="label">{$form.contact_smart_group_display.label}</td>
48 <td>{$form.contact_smart_group_display.html}</td>
49 </tr>
50 <tr class="crm-preferences-display-form-block-description">
51 <td>&nbsp;</td>
52 <td class="description">
53 {ts}Controls display of the smart groups that a contact is part of in each contact's "Groups" tab.
54 "Show on Demand" provides the best performance, and is recommended for most sites.{/ts}
55 </td>
56 </tr>
57 <tr class="crm-preferences-display-form-block-contact_edit_options">
58 <td class="label">{$form.contact_edit_options.label}</td>
59 <td>
60 <table style="width:90%">
61 <tr>
62 <td style="width:30%">
63 <span class="label"><strong>{ts}Individual Name Fields{/ts}</strong></span>
64 <ul id="contactEditNameFields">
65 {foreach from=$nameFields item="title" key="opId"}
66 <li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all"
67 style="padding-left:1px;">
68 <span>{$form.contact_edit_options.$opId.html}</span>
69 </li>
70 {/foreach}
71 </ul>
72 </td>
73 <td style="width:30%">
74 <span class="label"><strong>{ts}Contact Details{/ts}</strong></span>
75 <ul id="contactEditBlocks">
76 {foreach from=$contactBlocks item="title" key="opId"}
77 <li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all"
78 style="padding-left:1px;">
79 <span class='ui-icon ui-icon-arrowthick-2-n-s' style="float:left;"></span>
80 <span>{$form.contact_edit_options.$opId.html}</span>
81 </li>
82 {/foreach}
83 </ul>
84 </td>
85 <td>
86 <span class="label"><strong>{ts}Other Panes{/ts}</strong></span>
87 <ul id="contactEditOptions">
88 {foreach from=$editOptions item="title" key="opId"}
89 <li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all"
90 style="padding-left:1px;">
91 <span class='ui-icon ui-icon-arrowthick-2-n-s' style="float:left;"></span>
92 <span>{$form.contact_edit_options.$opId.html}</span>
93 </li>
94 {/foreach}
95 </ul>
96 </td>
97 </tr>
98 </table>
99 </td>
100 </tr>
101 <tr class="crm-preferences-display-form-block-description">
102 <td>&nbsp;</td>
103 <td class="description">
104 {ts}Select the sections that should be included when adding or editing a contact record.
105 EXAMPLE: If your organization does not record Gender and Birth Date for individuals, then simplify the form
106 by un-checking this option. Drag interface allows you to change the order of the panes displayed on contact
107 add/edit screen.{/ts}
108 </td>
109 </tr>
110 <tr class="crm-preferences-display-form-block-advanced_search_options">
111 <td class="label">{$form.advanced_search_options.label}</td>
112 <td>{$form.advanced_search_options.html}</td>
113 </tr>
114 <tr class="crm-preferences-display-form-block-description">
115 <td>&nbsp;</td>
116 <td
117 class="description">{ts}Select the sections that should be included in the Basic and Advanced Search forms.
118 EXAMPLE: If you don't track Relationships - then you do not need this section included in the advanced search
119 form. Simplify the form by un-checking this option.{/ts}
120 </td>
121 </tr>
122 <tr class="crm-preferences-display-form-block-contact_ajax_check_similar">
123 <td class="label"></td>
124 <td>{$form.contact_ajax_check_similar.html} {$form.contact_ajax_check_similar.label}</td>
125 </tr>
126 <tr class="crm-preferences-display-form-block-description">
127 <td>&nbsp;</td>
128 <td class="description">{ts}When enabled, checks for contacts with similar names as the user types values into
129 the contact form name fields.{/ts}
130 </td>
131 </tr>
132 <tr class="crm-preferences-display-form-block-activity_assignee_notification">
133 <td class="label"></td>
134 <td>{$form.activity_assignee_notification.html} {$form.activity_assignee_notification.label}</td>
135 </tr>
136 <tr class="crm-preferences-display-form-block-description">
137 <td>&nbsp;</td>
138 <td class="description">
139 {ts}When enabled, contacts who are assigned activities will automatically receive an email notification
140 with a copy of the activity.{/ts}
141 </td>
142 </tr>
143
144 <tr class="crm-preferences-display-form-block-activity_assignee_notification_ics">
145 <td class="label"></td>
146 <td>{$form.activity_assignee_notification_ics.html} {$form.activity_assignee_notification_ics.label}</td>
147 </tr>
148 <tr class="crm-preferences-display-form-block-description">
149 <td>&nbsp;</td>
150 <td class="description">{ts}When enabled, the assignee notification sent out above will also include
151 an ical meeting invite.{/ts}
152 </td>
153 </tr>
154
155 <tr class="crm-preferences-display-form-block-user_dashboard_options">
156 <td class="label">{$form.user_dashboard_options.label}</td>
157 <td>{$form.user_dashboard_options.html}</td>
158 </tr>
159 <tr class="crm-preferences-display-form-block-description">
160 <td>&nbsp;</td>
161 <td class="description">
162 {ts}Select the sections that should be included in the Contact Dashboard. EXAMPLE: If you don't want
163 constituents to view their own contribution history, un-check that option.{/ts}
164 </td>
165 </tr>
166 <tr class="crm-preferences-display-form-block-editor_id">
167 <td class="label">{$form.editor_id.label}</td>
168 <td>{$form.editor_id.html}</td>
169 </tr>
170 {if $form.wysiwyg_input_format.html}
171 <tr id="crm-preferences-display-form-block-wysiwyg_input_format" style="display:none;">
172 <td class="label">{$form.wysiwyg_input_format.label}</td>
173 <td>
174 {$form.wysiwyg_input_format.html}{literal}
175 <script type="text/javascript">cj(document).ready(function () {
176 if (cj('#editor_id').val() == 4) {
177 cj('#crm-preferences-display-form-block-wysiwyg_input_format').show();
178 }
179 });</script>
180 {/literal}
181 <br/>
182 <span class="description">
183 {ts}You will need to enable and configure several modules if you want to allow users to upload images
184 while using a Drupal Default Editor.{/ts}
185 {docURL page="Configuring CiviCRM to Use the Default Drupal Editor" resource="wiki"}
186 </span>
187 </td>
188 </tr>
189 {/if}
190 <tr class="crm-preferences-display-form-block-description">
191 <td>&nbsp;</td>
192 <td class="description">
193 {ts}Select the HTML WYSIWYG Editor provided for fields that allow HTML formatting. Select 'Textarea'
194 if you don't want to provide a WYSIWYG Editor (users will type text and / or HTML code into plain text
195 fields).{/ts} {help id="id-editor_id"}
196 </td>
197 </tr>
198 <tr class="crm-preferences-display-form-block-display_name_format">
199 <td class="label">{$form.display_name_format.label}</td>
200 <td>{$form.display_name_format.html}</td>
201 </tr>
202 <tr class="crm-preferences-display-form-block-description">
203 <td>&nbsp;</td>
204 <td class="description">{ts}Display name format for individual contact display names.{/ts}</td>
205 </tr>
206 <tr class="crm-preferences-display-form-block-sort_name_format">
207 <td class="label">{$form.sort_name_format.label}</td>
208 <td>{$form.sort_name_format.html}</td>
209 </tr>
210 <tr class="crm-preferences-display-form-block-description">
211 <td>&nbsp;</td>
212 <td class="description">{ts}Sort name format for individual contact display names.{/ts}</td>
213 </tr>
214 </table>
215 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
216 </div>
217 {if $form.contact_edit_options.html}
218 {literal}
219 <script type="text/javascript">
220 cj(function () {
221 cj("#contactEditBlocks").sortable({
222 placeholder: 'ui-state-highlight',
223 update: getSorting
224 });
225 cj("#contactEditOptions").sortable({
226 placeholder: 'ui-state-highlight',
227 update: getSorting
228 });
229 });
230
231 function getSorting(e, ui) {
232 var params = new Array();
233 var y = 0;
234 var items = cj("#contactEditBlocks li");
235 if (items.length > 0) {
236 for (var y = 0; y < items.length; y++) {
237 var idState = items[y].id.split('-');
238 params[y + 1] = idState[1];
239 }
240 }
241
242 items = cj("#contactEditOptions li");
243 if (items.length > 0) {
244 for (var x = 0; x < items.length; x++) {
245 var idState = items[x].id.split('-');
246 params[x + y + 1] = idState[1];
247 }
248 }
249 cj('#contact_edit_preferences').val(params.toString());
250 }
251 </script>
252 {/literal}
253 {/if}