Merge pull request #17487 from eileenmcnaughton/date
[civicrm-core.git] / templates / CRM / Admin / Form / Options.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {* this template is used for adding/editing options *}
11 <div class="crm-block crm-form-block crm-admin-options-form-block">
12 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
13 {if $action eq 8}
14 <div class="messages status no-popup">
15 <div class="icon inform-icon"></div>
16 {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}
17 </div>
18 {else}
19 <table class="form-layout-compressed">
20 {if $gName eq 'custom_search'}
21 <tr class="crm-admin-options-form-block-custom_search_path">
22 <td class="label">{ts}Custom Search Path{/ts}</td>
23 <td>{$form.label.html}<br />
24 <span class="description">{ts}Enter the "class path" for this custom search here.{/ts}
25 </td>
26 </tr>
27 {elseif $gName eq 'from_email_address'}
28 <tr class="crm-admin-options-form-block-from_email_address">
29 <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>
30 <td>{$form.label.html}<br />
31 <span class="description">{ts}Include double-quotes (&quot;) around the name and angle-brackets (&lt; &gt;) around the email address.<br />EXAMPLE: <em>&quot;Client Services&quot; &lt;clientservices@example.org&gt;</em>{/ts}<span>
32 </td>
33 </tr>
34 {elseif $gName eq 'redaction_rule'}
35 <tr class="crm-admin-options-form-block-expression">
36 <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>
37 <td>{$form.label.html}<br />
38 <span class="description">{ts}A "string value" or regular expression to be redacted (replaced).{/ts}</span>
39 </td>
40 </tr>
41 {else}
42 <tr class="crm-admin-options-form-block-label">
43 <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>
44 <td class="html-adjust">{$form.label.html}<br />
45 <span class="description">{ts}The option label is displayed to users.{/ts}</span>
46 </td>
47 </tr>
48 {if $form.financial_account_id.html}
49 <tr class="crm-admin-options-form-block-grouping">
50 <td class="label">{$form.financial_account_id.label}</td>
51 <td>{$form.financial_account_id.html}</td>
52 </tr>
53 {/if}
54 {/if}
55
56 {if $form.value.html && $gName neq 'redaction_rule'}
57 <tr class="crm-admin-options-form-block-value">
58 <td class="label">{$form.value.label}</td>
59 <td>{$form.value.html}<br />
60 {if $action == 2}
61 <span class="description"><i class="crm-i fa-exclamation-triangle" aria-hidden="true"></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>
62 {/if}
63 </td>
64 </tr>
65 {/if}
66
67 {if $gName eq 'custom_search'}
68 <tr class="crm-admin-options-form-block-search_title">
69 <td class="label">{ts}Search Title{/ts}</td>
70 <td>{$form.description.html}<br />
71 <span class="description">{ts}This title is displayed to users in the Custom Search listings.{/ts}</span>
72 </td>
73 </tr>
74 {else}
75 {if $gName eq 'redaction_rule'}
76 <tr class="crm-admin-options-form-block-replacement">
77 <td class="label">{ts}Replacement (prefix){/ts}</td>
78 <td>{$form.value.html}<br />
79 <span class="description">{ts}Matched values are replaced with this prefix plus a unique code. EX: If replacement prefix for &quot;Vancouver&quot; is <em>city_</em>, occurrences will be replaced with <em>city_39121</em>.{/ts}</span>
80 </td>
81 </tr>
82 {/if}
83 {if $form.name.html} {* Get the name value also *}
84 <tr class="crm-admin-options-form-block-name">
85 <td class="label">{$form.name.label}</td>
86 <td>{$form.name.html}<br />
87 <span class="description">{ts}The class name which implements this functionality.{/ts}</span>
88 </td>
89 </tr>
90 {/if}
91 {if $form.filter.html} {* Filter property is only exposed for some option groups. *}
92 <tr class="crm-admin-options-form-block-filter">
93 <td class="label">{$form.filter.label}</td>
94 <td>{$form.filter.html}</td>
95 </tr>
96 {/if}
97 <tr class="crm-admin-options-form-block-desciption">
98 <td class="label">{$form.description.label}</td>
99 <td>{$form.description.html}<br />
100 {if $gName eq 'activity_type'}
101 <span class="description">{ts}Description is included at the top of the activity edit and view pages for this type of activity.{/ts}</span>
102 </td>
103 </tr>
104 {/if}
105 {/if}
106 {if $gName eq 'participant_status'}
107 <tr class="crm-admin-options-form-block-visibility_id">
108 <td class="label">{$form.visibility_id.label}</td>
109 <td>{$form.visibility_id.html}</td>
110 </tr>
111 {/if}
112 {if $form.grouping.html}
113 <tr class="crm-admin-options-form-block-grouping">
114 <td class="label">{$form.grouping.label}</td>
115 <td>{$form.grouping.html}</td>
116 </tr>
117 {/if}
118 <tr class="crm-admin-options-form-block-weight">
119 <td class="label">{$form.weight.label}</td>
120 <td>{$form.weight.html}</td>
121 </tr>
122 {if $form.icon.html}
123 <tr class="crm-admin-options-form-block-icon">
124 <td class="label">{$form.icon.label}</td>
125 <td>{$form.icon.html}</td>
126 </tr>
127 {/if}
128 {if $form.color.html}
129 <tr class="crm-admin-options-form-block-color">
130 <td class="label">{$form.color.label}</td>
131 <td>{$form.color.html}</td>
132 </tr>
133 {/if}
134 {if $form.component_id.html} {* Component ID is exposed for activity types if CiviCase is enabled. *}
135 <tr class="crm-admin-options-form-block-component_id">
136 <td class="label">{$form.component_id.label}</td>
137 <td>{$form.component_id.html}</td>
138 </tr>
139 {/if}
140 <tr class="crm-admin-options-form-block-is_active">
141 <td class="label">{$form.is_active.label}</td>
142 <td>{$form.is_active.html}</td>
143 </tr>
144 {if $showDefault}
145 <tr class="crm-admin-options-form-block-is_default">
146 <td class="label">{$form.is_default.label}</td>
147 <td>{$form.is_default.html}</td>
148 </tr>
149 {/if}
150 {if $showContactFilter}{* contactOptions is exposed for email/postal greeting and addressee types to set filter for contact types *}
151 <tr class="crm-admin-options-form-block-contactOptions">
152 <td class="label">{$form.contactOptions.label}</td>
153 <td>{$form.contactOptions.html}</td>
154 </tr>
155 {/if}
156 </table>
157 {/if}
158 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
159 </fieldset>
160 </div>