{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
*}
{* this template is used for adding/editing options *}
-<h3>{if $action eq 1}{ts 1=$gLabel}New %1 Option{/ts}{elseif $action eq 8}{ts 1=$gLabel}Delete %1 Option{/ts}{else}{ts 1=$gLabel}Edit %1 Option{/ts}{/if}</h3>
<div class="crm-block crm-form-block crm-admin-options-form-block">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
{if $action eq 8}
<td>{$form.grouping.html}</td>
</tr>
{/if}
+
+ {if $form.value.html && $gName neq 'redaction_rule'}
+ <tr class="crm-admin-options-form-block-value">
+ <td class="label">{$form.value.label}</td>
+ <td>{$form.value.html}<br />
+ <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>
+ </td>
+ </tr>
+ {/if}
+
{if $gName eq 'custom_search'}
<tr class="crm-admin-options-form-block-search_title">
<td class="label">{ts}Search Title{/ts}</td>
</td>
</tr>
{else}
- {if $gName eq 'redaction_rule'}
- <tr class="crm-admin-options-form-block-replacement">
- <td class="label">{ts}Replacement (prefix){/ts}</td>
- <td>{$form.value.html}<br />
- <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>
- </td>
- </tr>
- {elseif $form.value.html}
- <tr class="crm-admin-options-form-block-value">
- <td class="label">{$form.value.label}</td>
- <td>{$form.value.html}<br />
- <span class="description">{ts}The option value is stored in your database.{/ts}</span>
- </td>
- </tr>
- {/if}
+ {if $gName eq 'redaction_rule'}
+ <tr class="crm-admin-options-form-block-replacement">
+ <td class="label">{ts}Replacement (prefix){/ts}</td>
+ <td>{$form.value.html}<br />
+ <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>
+ </td>
+ </tr>
+ {/if}
{if $form.name.html} {* Get the name value also *}
<tr class="crm-admin-options-form-block-name">
<td class="label">{$form.name.label}</td>