Merge pull request #18056 from pradpnayak/invopdf
[civicrm-core.git] / templates / CRM / Admin / Form / ContactType.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
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 |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10{* this template is used for adding/editing Contact Type *}
11
6a488035
TO
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">
34d6cec4 15 {icon icon="fa-info-circle"}{/icon}
6a488035
TO
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>
edc51caa 27
6a488035
TO
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">
e2046b33
CW
39 <td class="label">{$form.image_URL.label} {help id="id-image_URL"}</td>
40 <td>{$form.image_URL.html|crmAddClass:'huge40'}</td>
edc51caa 41 </tr>
6a488035
TO
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>
edc51caa 48
6a488035
TO
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>