CRM-19723 - Add crmIconPicker widget
[civicrm-core.git] / templates / CRM / Admin / Form / Preferences / Display.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2016 |
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} {help id="editor_id"}</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-ajaxPopupsEnabled">
168 <td class="label">{$form.ajaxPopupsEnabled.label}</td>
169 <td>{$form.ajaxPopupsEnabled.html}</td>
170 </tr>
171 <tr class="crm-preferences-display-form-block-description">
172 <td>&nbsp;</td>
173 <td class="description">
174 {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}
175 </td>
176 </tr>
177 <tr class="crm-preferences-display-form-block-display_name_format">
178 <td class="label">{$form.display_name_format.label}</td>
179 <td>{$form.display_name_format.html}</td>
180 </tr>
181 <tr class="crm-preferences-display-form-block-description">
182 <td>&nbsp;</td>
183 <td class="description">{ts}Display name format for individual contact display names.{/ts}</td>
184 </tr>
185 <tr class="crm-preferences-display-form-block-sort_name_format">
186 <td class="label">{$form.sort_name_format.label}</td>
187 <td>{$form.sort_name_format.html}</td>
188 </tr>
189 <tr class="crm-preferences-display-form-block-description">
190 <td>&nbsp;</td>
191 <td class="description">{ts}Sort name format for individual contact display names.{/ts}</td>
192 </tr>
193 </table>
194 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
195 </div>
196 {if $form.contact_edit_options.html}
197 {literal}
198 <script type="text/javascript">
199 CRM.$(function($) {
200 function getSorting(e, ui) {
201 var params = [];
202 var y = 0;
203 var items = $("#contactEditBlocks li");
204 if (items.length > 0) {
205 for (var y = 0; y < items.length; y++) {
206 var idState = items[y].id.split('-');
207 params[y + 1] = idState[1];
208 }
209 }
210
211 items = $("#contactEditOptions li");
212 if (items.length > 0) {
213 for (var x = 0; x < items.length; x++) {
214 var idState = items[x].id.split('-');
215 params[x + y + 1] = idState[1];
216 }
217 }
218 $('#contact_edit_preferences').val(params.toString());
219 }
220
221 var invoicesKey = '{/literal}{$invoicesKey}{literal}';
222 var invoicing = '{/literal}{$invoicing}{literal}';
223 if (!invoicing) {
224 $('#user_dashboard_options_' + invoicesKey).attr("disabled", true);
225 }
226 $("#invoice_help").insertAfter("label[for='user_dashboard_options_" + invoicesKey + "']");
227
228 $("#contactEditBlocks, #contactEditOptions").sortable({
229 placeholder: 'ui-state-highlight',
230 update: getSorting
231 });
232
233 function showCKEditorConfig() {
234 $('.crm-preferences-display-form-block-editor_id .crm-button').toggle($(this).val() == 'CKEditor');
235 }
236 $('select[name=editor_id]').each(showCKEditorConfig).change(showCKEditorConfig);
237 });
238 </script>
239 {/literal}
240 {/if}