Merge pull request #17981 from eileenmcnaughton/merge_form
[civicrm-core.git] / templates / CRM / Admin / Form / ContactType.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 {* this template is used for adding/editing Contact Type *}
11
12 <div class="crm-block crm-form-block crm-contact-type-form-block">
13 {if $action eq 8}
14 <div class="messages status no-popup">
15 {icon icon="fa-info-circle"}{/icon}
16 {ts}WARNING: {ts}This action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}{/ts}
17 </div>
18 {else}
19 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
20 <table class="form-layout-compressed">
21 <tr class="crm-contact-type-form-block-label">
22 <td class="label">{$form.label.label}
23 {if $action eq 2}
24 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='label' id= $cid }
25 {/if}
26 </td>
27
28 <td>{$form.label.html}</td>
29 </tr>
30 <tr class="crm-contact-type-form-block-parent_id">
31 <td class="label">{$form.parent_id.label}</td>
32 {if $is_parent OR $action EQ 1}
33 <td>{$form.parent_id.html}</td>
34 {else}
35 <td>{ts}{$contactTypeName}{/ts} {ts}(built-in){/ts}</td>
36 {/if}
37 </tr>
38 <tr class="crm-contact-type-form-block-image_URL">
39 <td class="label">{$form.image_URL.label} {help id="id-image_URL"}</td>
40 <td>{$form.image_URL.html|crmAddClass:'huge40'}</td>
41 </tr>
42 <tr class="crm-contact-type-form-block-description">
43 <td class="label">{$form.description.label}
44 {if $action eq 2}
45 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='description' id= $cid}
46 {/if}
47 </td>
48
49 <td>{$form.description.html}</td>
50 </tr>
51 <tr class="crm-contact-type-form-block-is_active">
52 <td class="label">{$form.is_active.label}</td><td>{$form.is_active.html}</td>
53 </tr>
54 </table>
55 {/if}
56 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
57 </div>