Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
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> </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> </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. | |
54 | "Show on Demand" provides the best performance, and is recommended for most sites.{/ts} | |
55 | </td> | |
56 | </tr> | |
23abefa4 KJ |
57 | <tr class="crm-preferences-display-form-block-contact_edit_options"> |
58 | <td class="label">{$form.contact_edit_options.label}</td> | |
59 | <td> | |
8b49cb50 | 60 | <table style="width:90%"> |
23abefa4 | 61 | <tr> |
8b49cb50 OB |
62 | <td style="width:30%"> |
63 | <span class="label"><strong>{ts}Individual Name Fields{/ts}</strong></span> | |
64 | <ul id="contactEditNameFields"> | |
65 | {foreach from=$nameFields item="title" key="opId"} | |
66 | <li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all" | |
67 | style="padding-left:1px;"> | |
68 | <span>{$form.contact_edit_options.$opId.html}</span> | |
69 | </li> | |
70 | {/foreach} | |
71 | </ul> | |
72 | </td> | |
73 | <td style="width:30%"> | |
23abefa4 KJ |
74 | <span class="label"><strong>{ts}Contact Details{/ts}</strong></span> |
75 | <ul id="contactEditBlocks"> | |
76 | {foreach from=$contactBlocks item="title" key="opId"} | |
77 | <li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all" | |
78 | style="padding-left:1px;"> | |
79 | <span class='ui-icon ui-icon-arrowthick-2-n-s' style="float:left;"></span> | |
80 | <span>{$form.contact_edit_options.$opId.html}</span> | |
81 | </li> | |
82 | {/foreach} | |
83 | </ul> | |
84 | </td> | |
6a488035 | 85 | <td> |
23abefa4 KJ |
86 | <span class="label"><strong>{ts}Other Panes{/ts}</strong></span> |
87 | <ul id="contactEditOptions"> | |
88 | {foreach from=$editOptions item="title" key="opId"} | |
89 | <li id="preference-{$opId}-contactedit" class="ui-state-default ui-corner-all" | |
90 | style="padding-left:1px;"> | |
91 | <span class='ui-icon ui-icon-arrowthick-2-n-s' style="float:left;"></span> | |
92 | <span>{$form.contact_edit_options.$opId.html}</span> | |
93 | </li> | |
94 | {/foreach} | |
95 | </ul> | |
96 | </td> | |
97 | </tr> | |
98 | </table> | |
99 | </td> | |
100 | </tr> | |
101 | <tr class="crm-preferences-display-form-block-description"> | |
102 | <td> </td> | |
23dcc981 KJ |
103 | <td class="description"> |
104 | {ts}Select the sections that should be included when adding or editing a contact record. | |
23abefa4 KJ |
105 | EXAMPLE: If your organization does not record Gender and Birth Date for individuals, then simplify the form |
106 | by un-checking this option. Drag interface allows you to change the order of the panes displayed on contact | |
107 | add/edit screen.{/ts} | |
108 | </td> | |
109 | </tr> | |
110 | <tr class="crm-preferences-display-form-block-advanced_search_options"> | |
111 | <td class="label">{$form.advanced_search_options.label}</td> | |
112 | <td>{$form.advanced_search_options.html}</td> | |
113 | </tr> | |
114 | <tr class="crm-preferences-display-form-block-description"> | |
115 | <td> </td> | |
116 | <td | |
117 | class="description">{ts}Select the sections that should be included in the Basic and Advanced Search forms. | |
118 | EXAMPLE: If you don't track Relationships - then you do not need this section included in the advanced search | |
119 | form. Simplify the form by un-checking this option.{/ts} | |
120 | </td> | |
121 | </tr> | |
122 | <tr class="crm-preferences-display-form-block-contact_ajax_check_similar"> | |
123 | <td class="label"></td> | |
124 | <td>{$form.contact_ajax_check_similar.html} {$form.contact_ajax_check_similar.label}</td> | |
125 | </tr> | |
126 | <tr class="crm-preferences-display-form-block-description"> | |
127 | <td> </td> | |
128 | <td class="description">{ts}When enabled, checks for contacts with similar names as the user types values into | |
129 | the contact form name fields.{/ts} | |
130 | </td> | |
131 | </tr> | |
132 | <tr class="crm-preferences-display-form-block-activity_assignee_notification"> | |
133 | <td class="label"></td> | |
134 | <td>{$form.activity_assignee_notification.html} {$form.activity_assignee_notification.label}</td> | |
135 | </tr> | |
136 | <tr class="crm-preferences-display-form-block-description"> | |
137 | <td> </td> | |
138 | <td class="description"> | |
139 | {ts}When enabled, contacts who are assigned activities will automatically receive an email notification | |
140 | with a copy of the activity.{/ts} | |
141 | </td> | |
142 | </tr> | |
6a488035 | 143 | |
23abefa4 KJ |
144 | <tr class="crm-preferences-display-form-block-activity_assignee_notification_ics"> |
145 | <td class="label"></td> | |
146 | <td>{$form.activity_assignee_notification_ics.html} {$form.activity_assignee_notification_ics.label}</td> | |
147 | </tr> | |
148 | <tr class="crm-preferences-display-form-block-description"> | |
149 | <td> </td> | |
150 | <td class="description">{ts}When enabled, the assignee notification sent out above will also include | |
151 | an ical meeting invite.{/ts} | |
152 | </td> | |
153 | </tr> | |
6a488035 | 154 | |
23abefa4 KJ |
155 | <tr class="crm-preferences-display-form-block-user_dashboard_options"> |
156 | <td class="label">{$form.user_dashboard_options.label}</td> | |
e0d683cf | 157 | <td>{$form.user_dashboard_options.html}<span id="invoice_help"> {help id="id-invoices_id"}</span></td> |
23abefa4 KJ |
158 | </tr> |
159 | <tr class="crm-preferences-display-form-block-description"> | |
160 | <td> </td> | |
161 | <td class="description"> | |
162 | {ts}Select the sections that should be included in the Contact Dashboard. EXAMPLE: If you don't want | |
163 | constituents to view their own contribution history, un-check that option.{/ts} | |
164 | </td> | |
165 | </tr> | |
166 | <tr class="crm-preferences-display-form-block-editor_id"> | |
167 | <td class="label">{$form.editor_id.label}</td> | |
168 | <td>{$form.editor_id.html}</td> | |
169 | </tr> | |
170 | {if $form.wysiwyg_input_format.html} | |
171 | <tr id="crm-preferences-display-form-block-wysiwyg_input_format" style="display:none;"> | |
172 | <td class="label">{$form.wysiwyg_input_format.label}</td> | |
173 | <td> | |
174 | {$form.wysiwyg_input_format.html}{literal} | |
175 | <script type="text/javascript">cj(document).ready(function () { | |
176 | if (cj('#editor_id').val() == 4) { | |
177 | cj('#crm-preferences-display-form-block-wysiwyg_input_format').show(); | |
178 | } | |
179 | });</script> | |
180 | {/literal} | |
181 | <br/> | |
182 | <span class="description"> | |
183 | {ts}You will need to enable and configure several modules if you want to allow users to upload images | |
184 | while using a Drupal Default Editor.{/ts} | |
185 | {docURL page="Configuring CiviCRM to Use the Default Drupal Editor" resource="wiki"} | |
186 | </span> | |
187 | </td> | |
188 | </tr> | |
189 | {/if} | |
190 | <tr class="crm-preferences-display-form-block-description"> | |
191 | <td> </td> | |
192 | <td class="description"> | |
193 | {ts}Select the HTML WYSIWYG Editor provided for fields that allow HTML formatting. Select 'Textarea' | |
194 | if you don't want to provide a WYSIWYG Editor (users will type text and / or HTML code into plain text | |
195 | fields).{/ts} {help id="id-editor_id"} | |
196 | </td> | |
197 | </tr> | |
53f2643c CW |
198 | <tr class="crm-preferences-display-form-block-ajaxPopupsEnabled"> |
199 | <td class="label">{$form.ajaxPopupsEnabled.label}</td> | |
200 | <td>{$form.ajaxPopupsEnabled.html}</td> | |
f1cf499b CW |
201 | </tr> |
202 | <tr class="crm-preferences-display-form-block-description"> | |
203 | <td> </td> | |
204 | <td class="description"> | |
205 | {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} | |
206 | </td> | |
207 | </tr> | |
23abefa4 KJ |
208 | <tr class="crm-preferences-display-form-block-display_name_format"> |
209 | <td class="label">{$form.display_name_format.label}</td> | |
210 | <td>{$form.display_name_format.html}</td> | |
211 | </tr> | |
212 | <tr class="crm-preferences-display-form-block-description"> | |
213 | <td> </td> | |
214 | <td class="description">{ts}Display name format for individual contact display names.{/ts}</td> | |
215 | </tr> | |
216 | <tr class="crm-preferences-display-form-block-sort_name_format"> | |
217 | <td class="label">{$form.sort_name_format.label}</td> | |
218 | <td>{$form.sort_name_format.html}</td> | |
219 | </tr> | |
220 | <tr class="crm-preferences-display-form-block-description"> | |
221 | <td> </td> | |
222 | <td class="description">{ts}Sort name format for individual contact display names.{/ts}</td> | |
223 | </tr> | |
224 | </table> | |
225 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
6a488035 TO |
226 | </div> |
227 | {if $form.contact_edit_options.html} | |
23abefa4 KJ |
228 | {literal} |
229 | <script type="text/javascript"> | |
3cc60a06 | 230 | CRM.$(function($) { |
23abefa4 KJ |
231 | cj("#contactEditBlocks").sortable({ |
232 | placeholder: 'ui-state-highlight', | |
233 | update: getSorting | |
234 | }); | |
235 | cj("#contactEditOptions").sortable({ | |
236 | placeholder: 'ui-state-highlight', | |
237 | update: getSorting | |
238 | }); | |
239 | }); | |
6a488035 | 240 | |
23abefa4 | 241 | function getSorting(e, ui) { |
6a488035 | 242 | var params = new Array(); |
23abefa4 KJ |
243 | var y = 0; |
244 | var items = cj("#contactEditBlocks li"); | |
245 | if (items.length > 0) { | |
246 | for (var y = 0; y < items.length; y++) { | |
247 | var idState = items[y].id.split('-'); | |
248 | params[y + 1] = idState[1]; | |
249 | } | |
250 | } | |
6a488035 TO |
251 | |
252 | items = cj("#contactEditOptions li"); | |
23abefa4 KJ |
253 | if (items.length > 0) { |
254 | for (var x = 0; x < items.length; x++) { | |
255 | var idState = items[x].id.split('-'); | |
256 | params[x + y + 1] = idState[1]; | |
257 | } | |
258 | } | |
259 | cj('#contact_edit_preferences').val(params.toString()); | |
260 | } | |
e0d683cf PB |
261 | cj(document).ready(function() { |
262 | var invoicesKey = '{/literal}{$invoicesKey}{literal}'; | |
263 | var invoicing = '{/literal}{$invoicing}{literal}'; | |
264 | if (!invoicing) { | |
9148c277 | 265 | cj('#user_dashboard_options_' + invoicesKey).attr("disabled", true); |
e0d683cf | 266 | } |
9148c277 | 267 | cj("#invoice_help").insertAfter("label[for='user_dashboard_options_" + invoicesKey + "']"); |
e0d683cf | 268 | }); |
23abefa4 KJ |
269 | </script> |
270 | {/literal} | |
6a488035 | 271 | {/if} |