Merge pull request #3152 from pradpnayak/CRM-14112
[civicrm-core.git] / templates / CRM / Admin / Form / ContactType.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
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*}
26{* this template is used for adding/editing Contact Type *}
27
28<h3>{if $action eq 1}{ts}New Contact Type{/ts}{elseif $action eq 2}{ts}Edit Contact Type{/ts}{else}{ts}Delete Contact Type{/ts}{/if}</h3>
29<div class="crm-block crm-form-block crm-contact-type-form-block">
30{if $action eq 8}
31 <div class="messages status no-popup">
32 <div class="icon inform-icon"></div>
33 {ts}WARNING: {ts}This action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}{/ts}
34 </div>
35{else}
36 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
37 <table class="form-layout-compressed">
38 <tr class="crm-contact-type-form-block-label">
39 <td class="label">{$form.label.label}
40 {if $action eq 2}
41 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='label' id= $cid }
42 {/if}
43 </td>
edc51caa 44
6a488035
TO
45 <td>{$form.label.html}</td>
46 </tr>
47 <tr class="crm-contact-type-form-block-parent_id">
48 <td class="label">{$form.parent_id.label}</td>
49 {if $is_parent OR $action EQ 1}
50 <td>{$form.parent_id.html}</td>
51 {else}
52 <td>{ts}{$contactTypeName}{/ts} {ts}(built-in){/ts}</td>
53 {/if}
54 </tr>
55 <tr class="crm-contact-type-form-block-image_URL">
56 <td class="label">{$form.image_URL.label}</td>
57 <td>{$form.image_URL.html|crmAddClass:'huge40'}{help id="id-image_URL"}</td>
edc51caa 58 </tr>
6a488035
TO
59 <tr class="crm-contact-type-form-block-description">
60 <td class="label">{$form.description.label}
61 {if $action eq 2}
62 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='description' id= $cid}
63 {/if}
64 </td>
edc51caa 65
6a488035
TO
66 <td>{$form.description.html}</td>
67 </tr>
68 <tr class="crm-contact-type-form-block-is_active">
69 <td class="label">{$form.is_active.label}</td><td>{$form.is_active.html}</td>
70 </tr>
71 </table>
72{/if}
73<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
74</div>