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