Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
6b83d5bd | 5 | | Copyright CiviCRM LLC (c) 2004-2019 | |
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 adding/editing options *} | |
6a488035 TO |
27 | <div class="crm-block crm-form-block crm-admin-options-form-block"> |
28 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
29 | {if $action eq 8} | |
30 | <div class="messages status no-popup"> | |
31 | <div class="icon inform-icon"></div> | |
6c2473d5 | 32 | {ts 1=$gLabel}WARNING: Deleting this option will result in the loss of all %1 related records which use the option.{/ts} {ts}This may mean the loss of a substantial amount of data, and the action cannot be undone.{/ts} {ts}Do you want to continue?{/ts} |
6a488035 TO |
33 | </div> |
34 | {else} | |
35 | <table class="form-layout-compressed"> | |
36 | {if $gName eq 'custom_search'} | |
37 | <tr class="crm-admin-options-form-block-custom_search_path"> | |
38 | <td class="label">{ts}Custom Search Path{/ts}</td> | |
39 | <td>{$form.label.html}<br /> | |
9fc0f0cd | 40 | <span class="description">{ts}Enter the "class path" for this custom search here.{/ts} |
6a488035 TO |
41 | </td> |
42 | </tr> | |
43 | {elseif $gName eq 'from_email_address'} | |
44 | <tr class="crm-admin-options-form-block-from_email_address"> | |
45 | <td class="label">{ts}FROM Email Address{/ts} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_value' field='label' id=$id}{/if}</td> | |
46 | <td>{$form.label.html}<br /> | |
47 | <span class="description">{ts}Include double-quotes (") around the name and angle-brackets (< >) around the email address.<br />EXAMPLE: <em>"Client Services" <clientservices@example.org></em>{/ts}<span> | |
48 | </td> | |
49 | </tr> | |
50 | {elseif $gName eq 'redaction_rule'} | |
51 | <tr class="crm-admin-options-form-block-expression"> | |
52 | <td class="label">{ts}Match Value or Expression{/ts} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_value' field='label' id=$id}{/if}</td> | |
53 | <td>{$form.label.html}<br /> | |
54 | <span class="description">{ts}A "string value" or regular expression to be redacted (replaced).{/ts}</span> | |
55 | </td> | |
56 | </tr> | |
57 | {else} | |
58 | <tr class="crm-admin-options-form-block-label"> | |
59 | <td class="label">{$form.label.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_value' field='label' id=$id}{/if}</td> | |
60 | <td class="html-adjust">{$form.label.html}<br /> | |
61 | <span class="description">{ts}The option label is displayed to users.{/ts}</span> | |
62 | </td> | |
63 | </tr> | |
edc51caa | 64 | {if $form.financial_account_id.html} |
6a488035 TO |
65 | <tr class="crm-admin-options-form-block-grouping"> |
66 | <td class="label">{$form.financial_account_id.label}</td> | |
67 | <td>{$form.financial_account_id.html}</td> | |
68 | </tr> | |
edc51caa | 69 | {/if} |
6a488035 | 70 | {/if} |
49c233c1 | 71 | |
72 | {if $form.value.html && $gName neq 'redaction_rule'} | |
73 | <tr class="crm-admin-options-form-block-value"> | |
74 | <td class="label">{$form.value.label}</td> | |
75 | <td>{$form.value.html}<br /> | |
4324b8d7 | 76 | {if $action == 2} |
bc8360e1 | 77 | <span class="description"><i class="crm-i fa-exclamation-triangle"></i> {ts}Changing the Value field will unlink records which have been marked with this option. This change can not be undone except by restoring the previous value.{/ts}</span> |
4324b8d7 | 78 | {/if} |
49c233c1 | 79 | </td> |
80 | </tr> | |
81 | {/if} | |
82 | ||
6a488035 TO |
83 | {if $gName eq 'custom_search'} |
84 | <tr class="crm-admin-options-form-block-search_title"> | |
85 | <td class="label">{ts}Search Title{/ts}</td> | |
86 | <td>{$form.description.html}<br /> | |
87 | <span class="description">{ts}This title is displayed to users in the Custom Search listings.{/ts}</span> | |
88 | </td> | |
89 | </tr> | |
90 | {else} | |
49c233c1 | 91 | {if $gName eq 'redaction_rule'} |
92 | <tr class="crm-admin-options-form-block-replacement"> | |
93 | <td class="label">{ts}Replacement (prefix){/ts}</td> | |
94 | <td>{$form.value.html}<br /> | |
95 | <span class="description">{ts}Matched values are replaced with this prefix plus a unique code. EX: If replacement prefix for "Vancouver" is <em>city_</em>, occurrences will be replaced with <em>city_39121</em>.{/ts}</span> | |
96 | </td> | |
97 | </tr> | |
98 | {/if} | |
6a488035 TO |
99 | {if $form.name.html} {* Get the name value also *} |
100 | <tr class="crm-admin-options-form-block-name"> | |
101 | <td class="label">{$form.name.label}</td> | |
102 | <td>{$form.name.html}<br /> | |
103 | <span class="description">{ts}The class name which implements this functionality.{/ts}</span> | |
104 | </td> | |
105 | </tr> | |
106 | {/if} | |
107 | {if $form.filter.html} {* Filter property is only exposed for some option groups. *} | |
108 | <tr class="crm-admin-options-form-block-filter"> | |
109 | <td class="label">{$form.filter.label}</td> | |
110 | <td>{$form.filter.html}</td> | |
111 | </tr> | |
112 | {/if} | |
113 | <tr class="crm-admin-options-form-block-desciption"> | |
114 | <td class="label">{$form.description.label}</td> | |
115 | <td>{$form.description.html}<br /> | |
116 | {if $gName eq 'activity_type'} | |
117 | <span class="description">{ts}Description is included at the top of the activity edit and view pages for this type of activity.{/ts}</span> | |
118 | </td> | |
119 | </tr> | |
120 | {/if} | |
121 | {/if} | |
122 | {if $gName eq 'participant_status'} | |
123 | <tr class="crm-admin-options-form-block-visibility_id"> | |
124 | <td class="label">{$form.visibility_id.label}</td> | |
125 | <td>{$form.visibility_id.html}</td> | |
126 | </tr> | |
e93811d1 CW |
127 | {/if} |
128 | {if $form.grouping.html} | |
129 | <tr class="crm-admin-options-form-block-grouping"> | |
130 | <td class="label">{$form.grouping.label}</td> | |
131 | <td>{$form.grouping.html}</td> | |
132 | </tr> | |
6a488035 TO |
133 | {/if} |
134 | <tr class="crm-admin-options-form-block-weight"> | |
135 | <td class="label">{$form.weight.label}</td> | |
136 | <td>{$form.weight.html}</td> | |
137 | </tr> | |
0c6fe5b5 CW |
138 | {if $form.icon.html} |
139 | <tr class="crm-admin-options-form-block-icon"> | |
140 | <td class="label">{$form.icon.label}</td> | |
141 | <td>{$form.icon.html}</td> | |
142 | </tr> | |
143 | {/if} | |
b62580ac CW |
144 | {if $form.color.html} |
145 | <tr class="crm-admin-options-form-block-color"> | |
146 | <td class="label">{$form.color.label}</td> | |
147 | <td>{$form.color.html}</td> | |
148 | </tr> | |
149 | {/if} | |
6a488035 TO |
150 | {if $form.component_id.html} {* Component ID is exposed for activity types if CiviCase is enabled. *} |
151 | <tr class="crm-admin-options-form-block-component_id"> | |
152 | <td class="label">{$form.component_id.label}</td> | |
153 | <td>{$form.component_id.html}</td> | |
154 | </tr> | |
155 | {/if} | |
156 | <tr class="crm-admin-options-form-block-is_active"> | |
157 | <td class="label">{$form.is_active.label}</td> | |
158 | <td>{$form.is_active.html}</td> | |
159 | </tr> | |
160 | {if $showDefault} | |
161 | <tr class="crm-admin-options-form-block-is_default"> | |
162 | <td class="label">{$form.is_default.label}</td> | |
163 | <td>{$form.is_default.html}</td> | |
164 | </tr> | |
165 | {/if} | |
166 | {if $showContactFilter}{* contactOptions is exposed for email/postal greeting and addressee types to set filter for contact types *} | |
167 | <tr class="crm-admin-options-form-block-contactOptions"> | |
168 | <td class="label">{$form.contactOptions.label}</td> | |
169 | <td>{$form.contactOptions.html}</td> | |
170 | </tr> | |
171 | {/if} | |
172 | </table> | |
173 | {/if} | |
174 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
175 | </fieldset> | |
176 | </div> |