CRM-16415 Wrenches, undos, and go-backs
[civicrm-core.git] / templates / CRM / Admin / Form / Preferences / Display.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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
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>
142 <td class="description">{ts}When enabled, the assignee notification sent out above will also include an ical meeting invite.{/ts}
143 </td>
144 </tr>
145
146 <tr class="crm-preferences-display-form-block-user_dashboard_options">
147 <td class="label">{$form.user_dashboard_options.label}</td>
148 <td>{$form.user_dashboard_options.html}<span id="invoice_help"> {help id="id-invoices_id"}</span></td>
149 </tr>
150 <tr class="crm-preferences-display-form-block-description">
151 <td>&nbsp;</td>
152 <td class="description">
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}
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>
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 <i class="crm-i fa-wrench" style="margin: 0 -18px 0 2px;"></i>
163 {$form.ckeditor_config.html}
164 </span>
165 </td>
166 </tr>
167 <tr class="crm-preferences-display-form-block-description">
168 <td>&nbsp;</td>
169 <td class="description">
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"}
171 </td>
172 </tr>
173 <tr class="crm-preferences-display-form-block-ajaxPopupsEnabled">
174 <td class="label">{$form.ajaxPopupsEnabled.label}</td>
175 <td>{$form.ajaxPopupsEnabled.html}</td>
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>
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>
201 </div>
202 {if $form.contact_edit_options.html}
203 {literal}
204 <script type="text/javascript">
205 CRM.$(function($) {
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 }
215 }
216
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 }
223 }
224 $('#contact_edit_preferences').val(params.toString());
225 }
226
227 var invoicesKey = '{/literal}{$invoicesKey}{literal}';
228 var invoicing = '{/literal}{$invoicing}{literal}';
229 if (!invoicing) {
230 $('#user_dashboard_options_' + invoicesKey).attr("disabled", true);
231 }
232 $("#invoice_help").insertAfter("label[for='user_dashboard_options_" + invoicesKey + "']");
233
234 $("#contactEditBlocks, #contactEditOptions").sortable({
235 placeholder: 'ui-state-highlight',
236 update: getSorting
237 });
238
239 function showCKEditorConfig() {
240 $('.crm-preferences-display-form-block-editor_id .crm-button').toggle($(this).val() == 'CKEditor');
241 }
242 $('select[name=editor_id]').each(showCKEditorConfig).change(showCKEditorConfig);
243 });
244 </script>
245 {/literal}
246 {/if}