| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.5 | |
| 4 | +--------------------------------------------------------------------+ |
| 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
| 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 | <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> |
| 28 | <div class="crm-block crm-form-block crm-admin-options-form-block"> |
| 29 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> |
| 30 | {if $action eq 8} |
| 31 | <div class="messages status no-popup"> |
| 32 | <div class="icon inform-icon"></div> |
| 33 | {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} |
| 34 | </div> |
| 35 | {else} |
| 36 | <table class="form-layout-compressed"> |
| 37 | {if $gName eq 'custom_search'} |
| 38 | <tr class="crm-admin-options-form-block-custom_search_path"> |
| 39 | <td class="label">{ts}Custom Search Path{/ts}</td> |
| 40 | <td>{$form.label.html}<br /> |
| 41 | <span class="description">{ts}Enter the "class path" for this custom search here.{/ts} |
| 42 | </td> |
| 43 | </tr> |
| 44 | {elseif $gName eq 'from_email_address'} |
| 45 | <tr class="crm-admin-options-form-block-from_email_address"> |
| 46 | <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> |
| 47 | <td>{$form.label.html}<br /> |
| 48 | <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> |
| 49 | </td> |
| 50 | </tr> |
| 51 | {elseif $gName eq 'redaction_rule'} |
| 52 | <tr class="crm-admin-options-form-block-expression"> |
| 53 | <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> |
| 54 | <td>{$form.label.html}<br /> |
| 55 | <span class="description">{ts}A "string value" or regular expression to be redacted (replaced).{/ts}</span> |
| 56 | </td> |
| 57 | </tr> |
| 58 | {else} |
| 59 | <tr class="crm-admin-options-form-block-label"> |
| 60 | <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> |
| 61 | <td class="html-adjust">{$form.label.html}<br /> |
| 62 | <span class="description">{ts}The option label is displayed to users.{/ts}</span> |
| 63 | </td> |
| 64 | </tr> |
| 65 | {if $form.financial_account_id.html} |
| 66 | <tr class="crm-admin-options-form-block-grouping"> |
| 67 | <td class="label">{$form.financial_account_id.label}</td> |
| 68 | <td>{$form.financial_account_id.html}</td> |
| 69 | </tr> |
| 70 | {/if} |
| 71 | {/if} |
| 72 | {if $gName eq 'case_status'} |
| 73 | <tr class="crm-admin-options-form-block-grouping"> |
| 74 | <td class="label">{$form.grouping.label}</td> |
| 75 | <td>{$form.grouping.html}</td> |
| 76 | </tr> |
| 77 | {/if} |
| 78 | {if $gName eq 'custom_search'} |
| 79 | <tr class="crm-admin-options-form-block-search_title"> |
| 80 | <td class="label">{ts}Search Title{/ts}</td> |
| 81 | <td>{$form.description.html}<br /> |
| 82 | <span class="description">{ts}This title is displayed to users in the Custom Search listings.{/ts}</span> |
| 83 | </td> |
| 84 | </tr> |
| 85 | {else} |
| 86 | {if $gName eq 'redaction_rule'} |
| 87 | <tr class="crm-admin-options-form-block-replacement"> |
| 88 | <td class="label">{ts}Replacement (prefix){/ts}</td> |
| 89 | <td>{$form.value.html}<br /> |
| 90 | <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> |
| 91 | </td> |
| 92 | </tr> |
| 93 | {elseif $form.value.html} |
| 94 | <tr class="crm-admin-options-form-block-value"> |
| 95 | <td class="label">{$form.value.label}</td> |
| 96 | <td>{$form.value.html}<br /> |
| 97 | <span class="description">{ts}The option value is stored in your database.{/ts}</span> |
| 98 | </td> |
| 99 | </tr> |
| 100 | {/if} |
| 101 | {if $form.name.html} {* Get the name value also *} |
| 102 | <tr class="crm-admin-options-form-block-name"> |
| 103 | <td class="label">{$form.name.label}</td> |
| 104 | <td>{$form.name.html}<br /> |
| 105 | <span class="description">{ts}The class name which implements this functionality.{/ts}</span> |
| 106 | </td> |
| 107 | </tr> |
| 108 | {/if} |
| 109 | {if $form.filter.html} {* Filter property is only exposed for some option groups. *} |
| 110 | <tr class="crm-admin-options-form-block-filter"> |
| 111 | <td class="label">{$form.filter.label}</td> |
| 112 | <td>{$form.filter.html}</td> |
| 113 | </tr> |
| 114 | {/if} |
| 115 | <tr class="crm-admin-options-form-block-desciption"> |
| 116 | <td class="label">{$form.description.label}</td> |
| 117 | <td>{$form.description.html}<br /> |
| 118 | {if $gName eq 'activity_type'} |
| 119 | <span class="description">{ts}Description is included at the top of the activity edit and view pages for this type of activity.{/ts}</span> |
| 120 | </td> |
| 121 | </tr> |
| 122 | {/if} |
| 123 | {/if} |
| 124 | {if $gName eq 'participant_status'} |
| 125 | <tr class="crm-admin-options-form-block-visibility_id"> |
| 126 | <td class="label">{$form.visibility_id.label}</td> |
| 127 | <td>{$form.visibility_id.html}</td> |
| 128 | </tr> |
| 129 | {/if} |
| 130 | <tr class="crm-admin-options-form-block-weight"> |
| 131 | <td class="label">{$form.weight.label}</td> |
| 132 | <td>{$form.weight.html}</td> |
| 133 | </tr> |
| 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> |