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