Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
4 | +--------------------------------------------------------------------+ |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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/deleting activity type *} | |
27 | <h3>{if $action eq 1}{ts}New Option Value{/ts}{elseif $action eq 2}{ts}Edit Option Value{/ts}{else}{ts}Delete Option Value{/ts}{/if}</h3> | |
28 | <div class="crm-block crm-form-block crm-admin-optionvalue-form-block"> | |
29 | {if $action eq 8} | |
30 | <div class="messages status no-popup"> | |
31 | <div class="icon inform-icon"></div> | |
32 | {ts}WARNING: Deleting this option value will result in the loss of all records which use the option value.{/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} | |
edc51caa | 35 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> |
6a488035 TO |
36 | <table class="form-layout-compressed"> |
37 | <tr class="crm-admin-optionvalue-form-block-label"> | |
edc51caa | 38 | <td class="label">{$form.label.label} |
6a488035 TO |
39 | {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_value' field='label' id=$id}{/if}</td> |
40 | <td>{$form.label.html}</td> | |
edc51caa | 41 | </tr> |
6a488035 TO |
42 | <tr class="crm-admin-optionvalue-form-block-value"> |
43 | <td class="label">{$form.value.label}</td> | |
44 | <td>{$form.value.html}<br /> | |
45 | {if $action eq 2} | |
46 | <span class="description red"><div class="icon alert-icon"></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> | |
47 | {/if} | |
48 | {if $config->languageLimit|@count >= 2}<br /> | |
49 | <span class="description">{ts}The same option value is stored for all languages. Changing this value will change it for all languages.{/ts}</span> | |
50 | {/if} | |
51 | </td> | |
edc51caa | 52 | </tr> |
53 | <tr class="crm-admin-optionvalue-form-block-name"> | |
6a488035 TO |
54 | <td class="label">{$form.name.label}</td> |
55 | <td>{$form.name.html}</td> | |
56 | </tr> | |
57 | <tr class="crm-admin-optionvalue-form-block-grouping"> | |
58 | <td class="label">{$form.grouping.label}</td> | |
59 | <td>{$form.grouping.html}</td> | |
60 | </tr> | |
edc51caa | 61 | {if $form.financial_account_id} |
6a488035 TO |
62 | <tr class="crm-admin-optionvalue-form-block-financialAccount"> |
63 | <td class="label">{$form.financial_account_id.label}</td> | |
64 | <td>{$form.financial_account_id.html}</td> | |
65 | </tr> | |
edc51caa | 66 | {/if} |
6a488035 TO |
67 | <tr class="crm-admin-optionvalue-form-block-description"> |
68 | <td class="label">{$form.description.label}</td> | |
69 | <td>{$form.description.html}</td> | |
70 | </tr> | |
71 | <tr class="crm-admin-optionvalue-form-block-weight"> | |
72 | <td class="label">{$form.weight.label}</td> | |
73 | <td>{$form.weight.html}</td> | |
74 | </tr> | |
75 | {if $form.is_default} | |
76 | <tr class="crm-admin-optionvalue-form-block-is_default"> | |
77 | <td class="label">{$form.is_default.label}</td> | |
78 | <td>{$form.is_default.html}</td> | |
79 | </tr> | |
80 | {/if} | |
81 | <tr class="crm-admin-optionvalue-form-block-is_active"> | |
82 | <td class="label">{$form.is_active.label}</td> | |
83 | <td>{$form.is_active.html}</td> | |
84 | </tr> | |
85 | <tr class="crm-admin-optionvalue-form-block-is_optgroup"> | |
86 | <td class="label">{$form.is_optgroup.label}</td> | |
87 | <td>{$form.is_optgroup.html}</td> | |
88 | </tr> | |
89 | {if $form.contactOptions}{* contactOptions is exposed for email/postal greeting and addressee types to set filter for contact types *} | |
90 | <tr class="crm-admin-optionvalue-form-block-contactOptions"> | |
91 | <td class="label">{$form.contactOptions.label}</td> | |
92 | <td>{$form.contactOptions.html}</td> | |
93 | </tr> | |
edc51caa | 94 | {/if} |
95 | </table> | |
6a488035 | 96 | {/if} |
edc51caa | 97 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> |
6a488035 | 98 | </div> |