Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
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 TO |
70 | {/if} |
71 | {if $gName eq 'case_status'} | |
72 | <tr class="crm-admin-options-form-block-grouping"> | |
73 | <td class="label">{$form.grouping.label}</td> | |
74 | <td>{$form.grouping.html}</td> | |
75 | </tr> | |
76 | {/if} | |
77 | {if $gName eq 'custom_search'} | |
78 | <tr class="crm-admin-options-form-block-search_title"> | |
79 | <td class="label">{ts}Search Title{/ts}</td> | |
80 | <td>{$form.description.html}<br /> | |
81 | <span class="description">{ts}This title is displayed to users in the Custom Search listings.{/ts}</span> | |
82 | </td> | |
83 | </tr> | |
84 | {else} | |
85 | {if $gName eq 'redaction_rule'} | |
86 | <tr class="crm-admin-options-form-block-replacement"> | |
87 | <td class="label">{ts}Replacement (prefix){/ts}</td> | |
88 | <td>{$form.value.html}<br /> | |
89 | <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> | |
90 | </td> | |
91 | </tr> | |
92 | {elseif $form.value.html} | |
93 | <tr class="crm-admin-options-form-block-value"> | |
94 | <td class="label">{$form.value.label}</td> | |
95 | <td>{$form.value.html}<br /> | |
5c7b5663 | 96 | <span class="description"><div class="icon ui-icon-alert"></div>{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> |
6a488035 TO |
97 | </td> |
98 | </tr> | |
99 | {/if} | |
100 | {if $form.name.html} {* Get the name value also *} | |
101 | <tr class="crm-admin-options-form-block-name"> | |
102 | <td class="label">{$form.name.label}</td> | |
103 | <td>{$form.name.html}<br /> | |
104 | <span class="description">{ts}The class name which implements this functionality.{/ts}</span> | |
105 | </td> | |
106 | </tr> | |
107 | {/if} | |
108 | {if $form.filter.html} {* Filter property is only exposed for some option groups. *} | |
109 | <tr class="crm-admin-options-form-block-filter"> | |
110 | <td class="label">{$form.filter.label}</td> | |
111 | <td>{$form.filter.html}</td> | |
112 | </tr> | |
113 | {/if} | |
114 | <tr class="crm-admin-options-form-block-desciption"> | |
115 | <td class="label">{$form.description.label}</td> | |
116 | <td>{$form.description.html}<br /> | |
117 | {if $gName eq 'activity_type'} | |
118 | <span class="description">{ts}Description is included at the top of the activity edit and view pages for this type of activity.{/ts}</span> | |
119 | </td> | |
120 | </tr> | |
121 | {/if} | |
122 | {/if} | |
123 | {if $gName eq 'participant_status'} | |
124 | <tr class="crm-admin-options-form-block-visibility_id"> | |
125 | <td class="label">{$form.visibility_id.label}</td> | |
126 | <td>{$form.visibility_id.html}</td> | |
127 | </tr> | |
128 | {/if} | |
129 | <tr class="crm-admin-options-form-block-weight"> | |
130 | <td class="label">{$form.weight.label}</td> | |
131 | <td>{$form.weight.html}</td> | |
132 | </tr> | |
133 | {if $form.component_id.html} {* Component ID is exposed for activity types if CiviCase is enabled. *} | |
134 | <tr class="crm-admin-options-form-block-component_id"> | |
135 | <td class="label">{$form.component_id.label}</td> | |
136 | <td>{$form.component_id.html}</td> | |
137 | </tr> | |
138 | {/if} | |
139 | <tr class="crm-admin-options-form-block-is_active"> | |
140 | <td class="label">{$form.is_active.label}</td> | |
141 | <td>{$form.is_active.html}</td> | |
142 | </tr> | |
143 | {if $showDefault} | |
144 | <tr class="crm-admin-options-form-block-is_default"> | |
145 | <td class="label">{$form.is_default.label}</td> | |
146 | <td>{$form.is_default.html}</td> | |
147 | </tr> | |
148 | {/if} | |
149 | {if $showContactFilter}{* contactOptions is exposed for email/postal greeting and addressee types to set filter for contact types *} | |
150 | <tr class="crm-admin-options-form-block-contactOptions"> | |
151 | <td class="label">{$form.contactOptions.label}</td> | |
152 | <td>{$form.contactOptions.html}</td> | |
153 | </tr> | |
154 | {/if} | |
155 | </table> | |
156 | {/if} | |
157 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
158 | </fieldset> | |
159 | </div> |