Update Copywrite year to be 2019
[civicrm-core.git] / templates / CRM / Custom / Form / Option.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
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 1=$label}Delete Option "%1"{/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-desc">
46 <td class="label">{$form.description.label}</td>
47 <td>{$form.description.html}</td>
48 <tr class="crm-custom_option-form-block-weight">
49 <td class="label">{$form.weight.label}</td>
50 <td>{$form.weight.html}</td>
51 </tr>
52 <tr class="crm-custom_option-form-block-is_active">
53 <td class="label">{$form.is_active.label}</td>
54 <td>{$form.is_active.html}</td>
55 </tr>
56 <tr class="crm-custom_option-form-block-default_value">
57 <td class="label">{$form.default_value.label}</td>
58 <td>{$form.default_value.html}<br />
59 <span class="description">{ts}Make this option value 'selected' by default?{/ts}</span></td>
60 </tr>
61 </table>
62 {/if}
63
64 {if $action ne 4}
65 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
66 {else}
67 <div class="crm-submit-buttons">{$form.done.html}</div>
68 {/if} {* $action ne view *}
69 </div>