Merge pull request #6432 from deepak-srivastava/dedupe-workflow-47
[civicrm-core.git] / templates / CRM / Admin / Form / Preferences / Display.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{* this template is used for editing Site Preferences *}
27<div class="crm-block crm-form-block crm-preferences-display-form-block">
23abefa4
KJ
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>
23dcc981
KJ
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">
0865a4ed 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}
23dcc981
KJ
54 </td>
55 </tr>
23abefa4
KJ
56 <tr class="crm-preferences-display-form-block-contact_edit_options">
57 <td class="label">{$form.contact_edit_options.label}</td>
58 <td>
8b49cb50 59 <table style="width:90%">
23abefa4 60 <tr>
8b49cb50
OB
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%">
23abefa4
KJ
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 <span class='ui-icon ui-icon-arrowthick-2-n-s' style="float:left;"></span>
79 <span>{$form.contact_edit_options.$opId.html}</span>
80 </li>
81 {/foreach}
82 </ul>
83 </td>
6a488035 84 <td>
23abefa4
KJ
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 <span class='ui-icon ui-icon-arrowthick-2-n-s' style="float:left;"></span>
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>
23dcc981 102 <td class="description">
0865a4ed 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}
23abefa4
KJ
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>
0865a4ed
CW
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}
23abefa4
KJ
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>
0865a4ed 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}
23abefa4
KJ
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">
0865a4ed 132 {ts}When enabled, contacts who are assigned activities will automatically receive an email notification with a copy of the activity.{/ts}
23abefa4
KJ
133 </td>
134 </tr>
6a488035 135
23abefa4
KJ
136 <tr class="crm-preferences-display-form-block-activity_assignee_notification_ics">
137 <td class="label"></td>
138 <td>{$form.activity_assignee_notification_ics.html} {$form.activity_assignee_notification_ics.label}</td>
139 </tr>
140 <tr class="crm-preferences-display-form-block-description">
141 <td>&nbsp;</td>
0865a4ed 142 <td class="description">{ts}When enabled, the assignee notification sent out above will also include an ical meeting invite.{/ts}
23abefa4
KJ
143 </td>
144 </tr>
6a488035 145
23abefa4
KJ
146 <tr class="crm-preferences-display-form-block-user_dashboard_options">
147 <td class="label">{$form.user_dashboard_options.label}</td>
e0d683cf 148 <td>{$form.user_dashboard_options.html}<span id="invoice_help"> {help id="id-invoices_id"}</span></td>
23abefa4
KJ
149 </tr>
150 <tr class="crm-preferences-display-form-block-description">
151 <td>&nbsp;</td>
152 <td class="description">
0865a4ed 153 {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}
23abefa4
KJ
154 </td>
155 </tr>
156 <tr class="crm-preferences-display-form-block-editor_id">
157 <td class="label">{$form.editor_id.label}</td>
7266e09b
CW
158 <td>
159 {$form.editor_id.html}
160 &nbsp;
161 <span class="crm-button crm-icon-button" style="display:inline-block;vertical-align:middle;float:none!important;">
162 <span class="crm-button-icon ui-icon-gear"> </span>
163 {$form.ckeditor_config.html}
164 </span>
165 </td>
23abefa4 166 </tr>
23abefa4
KJ
167 <tr class="crm-preferences-display-form-block-description">
168 <td>&nbsp;</td>
169 <td class="description">
0865a4ed 170 {ts}Select the HTML WYSIWYG Editor provided for fields that allow HTML formatting. Select 'Textarea' if you don't want to provide a WYSIWYG Editor (users will type text and / or HTML code into plain text fields).{/ts} {help id="id-editor_id"}
23abefa4
KJ
171 </td>
172 </tr>
53f2643c
CW
173 <tr class="crm-preferences-display-form-block-ajaxPopupsEnabled">
174 <td class="label">{$form.ajaxPopupsEnabled.label}</td>
175 <td>{$form.ajaxPopupsEnabled.html}</td>
f1cf499b
CW
176 </tr>
177 <tr class="crm-preferences-display-form-block-description">
178 <td>&nbsp;</td>
179 <td class="description">
180 {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}
181 </td>
182 </tr>
23abefa4
KJ
183 <tr class="crm-preferences-display-form-block-display_name_format">
184 <td class="label">{$form.display_name_format.label}</td>
185 <td>{$form.display_name_format.html}</td>
186 </tr>
187 <tr class="crm-preferences-display-form-block-description">
188 <td>&nbsp;</td>
189 <td class="description">{ts}Display name format for individual contact display names.{/ts}</td>
190 </tr>
191 <tr class="crm-preferences-display-form-block-sort_name_format">
192 <td class="label">{$form.sort_name_format.label}</td>
193 <td>{$form.sort_name_format.html}</td>
194 </tr>
195 <tr class="crm-preferences-display-form-block-description">
196 <td>&nbsp;</td>
197 <td class="description">{ts}Sort name format for individual contact display names.{/ts}</td>
198 </tr>
199 </table>
200 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
6a488035
TO
201</div>
202{if $form.contact_edit_options.html}
23abefa4
KJ
203 {literal}
204 <script type="text/javascript">
3cc60a06 205 CRM.$(function($) {
ae8f569f
CW
206 function getSorting(e, ui) {
207 var params = [];
208 var y = 0;
209 var items = $("#contactEditBlocks li");
210 if (items.length > 0) {
211 for (var y = 0; y < items.length; y++) {
212 var idState = items[y].id.split('-');
213 params[y + 1] = idState[1];
214 }
23abefa4 215 }
6a488035 216
ae8f569f
CW
217 items = $("#contactEditOptions li");
218 if (items.length > 0) {
219 for (var x = 0; x < items.length; x++) {
220 var idState = items[x].id.split('-');
221 params[x + y + 1] = idState[1];
222 }
23abefa4 223 }
ae8f569f 224 $('#contact_edit_preferences').val(params.toString());
23abefa4 225 }
97353519 226
e0d683cf
PB
227 var invoicesKey = '{/literal}{$invoicesKey}{literal}';
228 var invoicing = '{/literal}{$invoicing}{literal}';
229 if (!invoicing) {
97353519 230 $('#user_dashboard_options_' + invoicesKey).attr("disabled", true);
e0d683cf 231 }
97353519 232 $("#invoice_help").insertAfter("label[for='user_dashboard_options_" + invoicesKey + "']");
7f7fa13a 233
ae8f569f
CW
234 $("#contactEditBlocks, #contactEditOptions").sortable({
235 placeholder: 'ui-state-highlight',
236 update: getSorting
237 });
7266e09b
CW
238
239 function showCKEditorConfig() {
72f03b4f 240 $('.crm-preferences-display-form-block-editor_id .crm-button').toggle($(this).val() == 'CKEditor');
7266e09b
CW
241 }
242 $('select[name=editor_id]').each(showCKEditorConfig).change(showCKEditorConfig);
e0d683cf 243 });
23abefa4
KJ
244 </script>
245 {/literal}
6a488035 246{/if}