commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Admin / Form / ContactType.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 <div class="crm-block crm-form-block crm-contact-type-form-block">
29 {if $action eq 8}
30 <div class="messages status no-popup">
31 <div class="icon inform-icon"></div>
32 {ts}WARNING: {ts}This action cannot be undone.{/ts} {ts}Do you want to continue?{/ts}{/ts}
33 </div>
34 {else}
35 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
36 <table class="form-layout-compressed">
37 <tr class="crm-contact-type-form-block-label">
38 <td class="label">{$form.label.label}
39 {if $action eq 2}
40 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='label' id= $cid }
41 {/if}
42 </td>
43
44 <td>{$form.label.html}</td>
45 </tr>
46 <tr class="crm-contact-type-form-block-parent_id">
47 <td class="label">{$form.parent_id.label}</td>
48 {if $is_parent OR $action EQ 1}
49 <td>{$form.parent_id.html}</td>
50 {else}
51 <td>{ts}{$contactTypeName}{/ts} {ts}(built-in){/ts}</td>
52 {/if}
53 </tr>
54 <tr class="crm-contact-type-form-block-image_URL">
55 <td class="label">{$form.image_URL.label} {help id="id-image_URL"}</td>
56 <td>{$form.image_URL.html|crmAddClass:'huge40'}</td>
57 </tr>
58 <tr class="crm-contact-type-form-block-description">
59 <td class="label">{$form.description.label}
60 {if $action eq 2}
61 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_contact_type' field='description' id= $cid}
62 {/if}
63 </td>
64
65 <td>{$form.description.html}</td>
66 </tr>
67 <tr class="crm-contact-type-form-block-is_active">
68 <td class="label">{$form.is_active.label}</td><td>{$form.is_active.html}</td>
69 </tr>
70 </table>
71 {/if}
72 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
73 </div>