Merge pull request #17900 from aydun/wiki_changes
[civicrm-core.git] / templates / CRM / Admin / Form / OptionGroup.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 <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>
11 <div class="crm-block crm-form-block crm-admin-optiongroup-form-block">
12 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
13 {if $action eq 8}
14 <div class="messages status no-popup">
15 <div class="icon inform-icon"></div>
16 {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}
17 </div>
18 {else}
19 <table class="form-layout-compressed">
20 <tr class="crm-admin-optiongroup-form-block-name">
21 <tr class="crm-admin-optiongroup-form-block-title">
22 <td class="label">{$form.title.label}
23 {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>
24 </tr>
25 <tr class="crm-admin-optiongroup-form-block-description">
26 <td class="label">{$form.description.label}
27 {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>
28 </tr>
29 <td class="label">{$form.name.label}</td>
30 <td>{$form.name.html}</td></tr>
31 <tr class="crm-admin-optiongroup-form-block-data-type">
32 <td class="label">{$form.data_type.label}</td>
33 <td>{$form.data_type.html}</td>
34 </tr>
35 <tr class="crm-admin-optiongroup-form-block-is_active">
36 <td class="label">{$form.is_active.label}</td>
37 <td>{$form.is_active.html}</td>
38 </tr>
39 <tr class="crm-admin-optiongroup-form-block-is_reserved">
40 <td class="label">{$form.is_reserved.label}</td>
41 <td>{$form.is_reserved.html}</td>
42 </tr>
43 </table>
44 {/if}
45 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
46 </div>