Merge pull request #5729 from mlutfy/47-crm14588
[civicrm-core.git] / templates / CRM / Admin / Form / Preferences / Display.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
39de6fd5 3 | CiviCRM version 4.6 |
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>
158 <td>{$form.editor_id.html}</td>
159 </tr>
23abefa4
KJ
160 <tr class="crm-preferences-display-form-block-description">
161 <td>&nbsp;</td>
162 <td class="description">
0865a4ed 163 {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
164 </td>
165 </tr>
53f2643c
CW
166 <tr class="crm-preferences-display-form-block-ajaxPopupsEnabled">
167 <td class="label">{$form.ajaxPopupsEnabled.label}</td>
168 <td>{$form.ajaxPopupsEnabled.html}</td>
f1cf499b
CW
169 </tr>
170 <tr class="crm-preferences-display-form-block-description">
171 <td>&nbsp;</td>
172 <td class="description">
173 {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}
174 </td>
175 </tr>
23abefa4
KJ
176 <tr class="crm-preferences-display-form-block-display_name_format">
177 <td class="label">{$form.display_name_format.label}</td>
178 <td>{$form.display_name_format.html}</td>
179 </tr>
180 <tr class="crm-preferences-display-form-block-description">
181 <td>&nbsp;</td>
182 <td class="description">{ts}Display name format for individual contact display names.{/ts}</td>
183 </tr>
184 <tr class="crm-preferences-display-form-block-sort_name_format">
185 <td class="label">{$form.sort_name_format.label}</td>
186 <td>{$form.sort_name_format.html}</td>
187 </tr>
188 <tr class="crm-preferences-display-form-block-description">
189 <td>&nbsp;</td>
190 <td class="description">{ts}Sort name format for individual contact display names.{/ts}</td>
191 </tr>
192 </table>
193 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
6a488035
TO
194</div>
195{if $form.contact_edit_options.html}
23abefa4
KJ
196 {literal}
197 <script type="text/javascript">
3cc60a06 198 CRM.$(function($) {
ae8f569f
CW
199 function getSorting(e, ui) {
200 var params = [];
201 var y = 0;
202 var items = $("#contactEditBlocks li");
203 if (items.length > 0) {
204 for (var y = 0; y < items.length; y++) {
205 var idState = items[y].id.split('-');
206 params[y + 1] = idState[1];
207 }
23abefa4 208 }
6a488035 209
ae8f569f
CW
210 items = $("#contactEditOptions li");
211 if (items.length > 0) {
212 for (var x = 0; x < items.length; x++) {
213 var idState = items[x].id.split('-');
214 params[x + y + 1] = idState[1];
215 }
23abefa4 216 }
ae8f569f 217 $('#contact_edit_preferences').val(params.toString());
23abefa4 218 }
97353519 219
e0d683cf
PB
220 var invoicesKey = '{/literal}{$invoicesKey}{literal}';
221 var invoicing = '{/literal}{$invoicing}{literal}';
222 if (!invoicing) {
97353519 223 $('#user_dashboard_options_' + invoicesKey).attr("disabled", true);
e0d683cf 224 }
97353519 225 $("#invoice_help").insertAfter("label[for='user_dashboard_options_" + invoicesKey + "']");
7f7fa13a 226
ae8f569f
CW
227 $("#contactEditBlocks, #contactEditOptions").sortable({
228 placeholder: 'ui-state-highlight',
229 update: getSorting
230 });
e0d683cf 231 });
23abefa4
KJ
232 </script>
233 {/literal}
6a488035 234{/if}