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 | <div class="crm-block {if $action eq 4}crm-content-block {else}crm-form-block {/if}crm-custom_option-form-block"> | |
27 | <h3>{if $action eq 4 }{ts}View Option{/ts}{elseif $action eq 2}{ts}Edit Option{/ts}{elseif $action eq 8}{ts}Delete Option{/ts}{else}{ts}Add Option{/ts}{/if}</h3> | |
28 | {if $action ne 4 AND $action ne 8} | |
29 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
30 | {/if} {* $action ne view *} | |
31 | {if $action eq 8} | |
32 | <div class="messages status no-popup"> | |
33 | <div class="icon inform-icon"></div> | |
34 | {ts}WARNING: Deleting this custom field option will result in the loss of all related data.{/ts} {ts}This action cannot be undone.{/ts} {ts}Do you want to continue?{/ts} | |
35 | </div> | |
36 | {else} | |
37 | <table class="{if $action eq 4}crm-info-panel{else}form-layout{/if}"> | |
38 | <tr class="crm-custom_option-form-block-label"> | |
39 | <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> | |
40 | <td>{$form.label.html}</td> | |
41 | </tr> | |
42 | <tr class="crm-custom_option-form-block-value"> | |
43 | <td class="label">{$form.value.label}</td> | |
44 | <td>{$form.value.html}</td> | |
45 | <tr class="crm-custom_option-form-block-weight"> | |
46 | <td class="label">{$form.weight.label}</td> | |
47 | <td>{$form.weight.html}</td> | |
48 | </tr> | |
49 | <tr class="crm-custom_option-form-block-is_active"> | |
50 | <td class="label">{$form.is_active.label}</td> | |
51 | <td>{$form.is_active.html}</td> | |
52 | </tr> | |
53 | <tr class="crm-custom_option-form-block-default_value"> | |
54 | <td class="label">{$form.default_value.label}</td> | |
55 | <td>{$form.default_value.html}<br /> | |
56 | <span class="description">{ts}Make this option value 'selected' by default?{/ts}</span></td> | |
57 | </tr> | |
58 | </table> | |
59 | {/if} | |
60 | ||
61 | {if $action ne 4} | |
62 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
63 | {else} | |
64 | <div class="crm-submit-buttons">{$form.done.html}</div> | |
65 | {/if} {* $action ne view *} | |
66 | </div> |