js fix and naming modification
[civicrm-core.git] / templates / CRM / Admin / Form / Preferences / Display.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2017 |
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. "Show on Demand" provides the best performance, and is recommended for most sites.{/ts}
54 </td>
55 </tr>
56 <tr class="crm-preferences-display-form-block-contact_edit_options">
57 <td class="label">{$form.contact_edit_options.label}</td>
58 <td>
59 <table style="width:90%">
60 <tr>
61 <td style="width:30%">
62 <span class="label"><strong>{ts}Individual Name Fields{/ts}</strong></span>
63 <ul id="contactEditNameFields">
64 {foreach from=$nameFields item="title" key="opId"}
65 <li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all"
66 style="padding-left:1px;">
67 <span>{$form.contact_edit_options.$opId.html}</span>
68 </li>
69 {/foreach}
70 </ul>
71 </td>
72 <td style="width:30%">
73 <span class="label"><strong>{ts}Contact Details{/ts}</strong></span>
74 <ul id="contactEditBlocks">
75 {foreach from=$contactBlocks item="title" key="opId"}
76 <li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all"
77 style="padding-left:1px;">
78 <i class='crm-i fa-arrows crm-grip' style="float:left;"></i>
79 <span>{$form.contact_edit_options.$opId.html}</span>
80 </li>
81 {/foreach}
82 </ul>
83 </td>
84 <td>
85 <span class="label"><strong>{ts}Other Panes{/ts}</strong></span>
86 <ul id="contactEditOptions">
87 {foreach from=$editOptions item="title" key="opId"}
88 <li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all"
89 style="padding-left:1px;">
90 <i class='crm-i fa-arrows crm-grip' style="float:left;"></i>
91 <span>{$form.contact_edit_options.$opId.html}</span>
92 </li>
93 {/foreach}
94 </ul>
95 </td>
96 </tr>
97 </table>
98 </td>
99 </tr>
100 <tr class="crm-preferences-display-form-block-description">
101 <td>&nbsp;</td>
102 <td class="description">
103 {ts}Select the sections that should be included when adding or editing a contact record. EXAMPLE: If your organization does not record Gender and Birth Date for individuals, then simplify the form by un-checking this option. Drag interface allows you to change the order of the panes displayed on contact add/edit screen.{/ts}
104 </td>
105 </tr>
106 <tr class="crm-preferences-display-form-block-advanced_search_options">
107 <td class="label">{$form.advanced_search_options.label}</td>
108 <td>{$form.advanced_search_options.html}</td>
109 </tr>
110 <tr class="crm-preferences-display-form-block-description">
111 <td>&nbsp;</td>
112 <td class="description">
113 {ts}Select the sections that should be included in the Basic and Advanced Search forms. EXAMPLE: If you don't track Relationships - then you do not need this section included in the advanced search form. Simplify the form by un-checking this option.{/ts}
114 </td>
115 </tr>
116 <tr class="crm-preferences-display-form-block-contact_ajax_check_similar">
117 <td class="label"></td>
118 <td>{$form.contact_ajax_check_similar.html} {$form.contact_ajax_check_similar.label}</td>
119 </tr>
120 <tr class="crm-preferences-display-form-block-description">
121 <td>&nbsp;</td>
122 <td class="description">{ts}When enabled, checks for contacts with similar names as the user types values into the contact form name fields.{/ts}
123 </td>
124 </tr>
125 <tr class="crm-preferences-display-form-block-activity_assignee_notification">
126 <td class="label"></td>
127 <td>{$form.activity_assignee_notification.html} {$form.activity_assignee_notification.label}</td>
128 </tr>
129 <tr class="crm-preferences-display-form-block-description">
130 <td>&nbsp;</td>
131 <td class="description">
132 {ts}When enabled, contacts who are assigned activities will automatically receive an email notification with a copy of the activity.{/ts}
133 </td>
134 </tr>
135 <tr class="crm-preferences-display-form-activity_types">
136 <td class="label">{$form.do_not_notify_assignees_for.label}</td>
137 <td>{$form.do_not_notify_assignees_for.html}</td>
138 </tr>
139 <tr class="crm-preferences-display-form-activity_types">
140 <td>&nbsp;</td>
141 <td class="description">
142 {ts}These activity types will be excluded from automated email notifications to assignees.{/ts}
143 </td>
144 </tr>
145 <tr class="crm-preferences-display-form-block-activity_assignee_notification_ics">
146 <td class="label"></td>
147 <td>{$form.activity_assignee_notification_ics.html} {$form.activity_assignee_notification_ics.label}</td>
148 </tr>
149 <tr class="crm-preferences-display-form-block-description">
150 <td>&nbsp;</td>
151 <td class="description">{ts}When enabled, the assignee notification sent out above will also include an ical meeting invite.{/ts}
152 </td>
153 </tr>
154
155 <tr class="crm-preferences-display-form-block-preserve_activity_tab_filter">
156 <td class="label"></td>
157 <td>{$form.preserve_activity_tab_filter.html} {$form.preserve_activity_tab_filter.label}</td>
158 </tr>
159 <tr class="crm-preferences-display-form-block-description">
160 <td>&nbsp;</td>
161 <td class="description">{ts}When enabled, any filter settings a user selects on the contact's Activity tab will be remembered as they visit other contacts.{/ts}
162 </td>
163 </tr>
164
165 <tr class="crm-preferences-display-form-block-user_dashboard_options">
166 <td class="label">{$form.user_dashboard_options.label}</td>
167 <td>{$form.user_dashboard_options.html}<span id="invoice_help"> {help id="id-invoices_id"}</span></td>
168 </tr>
169 <tr class="crm-preferences-display-form-block-description">
170 <td>&nbsp;</td>
171 <td class="description">
172 {ts}Select the sections that should be included in the Contact Dashboard. EXAMPLE: If you don't want constituents to view their own contribution history, un-check that option.{/ts}
173 </td>
174 </tr>
175 <tr class="crm-preferences-display-form-block-editor_id">
176 <td class="label">{$form.editor_id.label} {help id="editor_id"}</td>
177 <td>
178 {$form.editor_id.html}
179 &nbsp;
180 <span class="crm-button crm-icon-button" style="display:inline-block;vertical-align:middle;float:none!important;">
181 <i class="crm-i fa-wrench" style="margin: 0 -18px 0 2px;"></i>
182 {$form.ckeditor_config.html}
183 </span>
184 </td>
185 </tr>
186 <tr class="crm-preferences-display-form-block-ajaxPopupsEnabled">
187 <td class="label">{$form.ajaxPopupsEnabled.label}</td>
188 <td>{$form.ajaxPopupsEnabled.html}</td>
189 </tr>
190 <tr class="crm-preferences-display-form-block-description">
191 <td>&nbsp;</td>
192 <td class="description">
193 {ts}If you disable this option, the CiviCRM interface will be limited to traditional browsing. Opening a form will refresh the page rather than opening a popup dialog.{/ts}
194 </td>
195 </tr>
196 <tr class="crm-preferences-display-form-block-display_name_format">
197 <td class="label">{$form.display_name_format.label}</td>
198 <td>{$form.display_name_format.html}</td>
199 </tr>
200 <tr class="crm-preferences-display-form-block-description">
201 <td>&nbsp;</td>
202 <td class="description">{ts}Display name format for individual contact display names.{/ts}</td>
203 </tr>
204 <tr class="crm-preferences-display-form-block-sort_name_format">
205 <td class="label">{$form.sort_name_format.label}</td>
206 <td>{$form.sort_name_format.html}</td>
207 </tr>
208 <tr class="crm-preferences-display-form-block-description">
209 <td>&nbsp;</td>
210 <td class="description">{ts}Sort name format for individual contact display names.{/ts}</td>
211 </tr>
212 </table>
213 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
214 </div>
215 {if $form.contact_edit_options.html}
216 {literal}
217 <script type="text/javascript">
218 CRM.$(function($) {
219 function getSorting(e, ui) {
220 var params = [];
221 var y = 0;
222 var items = $("#contactEditBlocks li");
223 if (items.length > 0) {
224 for (var y = 0; y < items.length; y++) {
225 var idState = items[y].id.split('-');
226 params[y + 1] = idState[1];
227 }
228 }
229
230 items = $("#contactEditOptions li");
231 if (items.length > 0) {
232 for (var x = 0; x < items.length; x++) {
233 var idState = items[x].id.split('-');
234 params[x + y + 1] = idState[1];
235 }
236 }
237 $('#contact_edit_preferences').val(params.toString());
238 }
239
240 //show/hide activity types based on checkbox value
241 if ($('#activity_assignee_notification').is(":checked")) {
242 $('.crm-preferences-display-form-activity_types').show();
243 }
244 else {
245 $('.crm-preferences-display-form-activity_types').hide();
246 }
247 $('#activity_assignee_notification').click(function() {
248 $('.crm-preferences-display-form-activity_types').toggle($('#activity_assignee_notification').is(":checked"));
249 });
250
251 var invoicesKey = '{/literal}{$invoicesKey}{literal}';
252 var invoicing = '{/literal}{$invoicing}{literal}';
253 if (!invoicing) {
254 $('#user_dashboard_options_' + invoicesKey).attr("disabled", true);
255 }
256 $("#invoice_help").insertAfter("label[for='user_dashboard_options_" + invoicesKey + "']");
257
258 $("#contactEditBlocks, #contactEditOptions").sortable({
259 placeholder: 'ui-state-highlight',
260 update: getSorting
261 });
262
263 function showCKEditorConfig() {
264 $('.crm-preferences-display-form-block-editor_id .crm-button').toggle($(this).val() == 'CKEditor');
265 }
266 $('select[name=editor_id]').each(showCKEditorConfig).change(showCKEditorConfig);
267 });
268 </script>
269 {/literal}
270 {/if}