Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
f299f7db | 5 | | Copyright CiviCRM LLC (c) 2004-2020 | |
6a488035 TO |
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 | *} | |
6a488035 TO |
26 | <h3>{if $action eq 1}{ts}New Option Group{/ts}{elseif $action eq 2}{ts}Edit Option Group{/ts}{else}{ts}Delete Option Group{/ts}{/if}</h3> |
27 | <div class="crm-block crm-form-block crm-admin-optiongroup-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}WARNING: Deleting this option gruop will result in the loss of all 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 | <tr class="crm-admin-optiongroup-form-block-name"> | |
37 | <tr class="crm-admin-optiongroup-form-block-title"> | |
38 | <td class="label">{$form.title.label} | |
39 | {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_group' field='title' id=$id}{/if}</td><td>{$form.title.html}</td> | |
40 | </tr> | |
41 | <tr class="crm-admin-optiongroup-form-block-description"> | |
42 | <td class="label">{$form.description.label} | |
43 | {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_option_group' field='description' id=$id}{/if}</td><td>{$form.description.html}</td> | |
44 | </tr> | |
45 | <td class="label">{$form.name.label}</td> | |
46 | <td>{$form.name.html}</td></tr> | |
1d4e5453 SL |
47 | <tr class="crm-admin-optiongroup-form-block-data-type"> |
48 | <td class="label">{$form.data_type.label}</td> | |
49 | <td>{$form.data_type.html}</td> | |
50 | </tr> | |
6a488035 TO |
51 | <tr class="crm-admin-optiongroup-form-block-is_active"> |
52 | <td class="label">{$form.is_active.label}</td> | |
53 | <td>{$form.is_active.html}</td> | |
54 | </tr> | |
62fbdfc0 MW |
55 | <tr class="crm-admin-optiongroup-form-block-is_reserved"> |
56 | <td class="label">{$form.is_reserved.label}</td> | |
57 | <td>{$form.is_reserved.html}</td> | |
58 | </tr> | |
6a488035 TO |
59 | </table> |
60 | {/if} | |
61 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
62 | </div> |