2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
10 {if $action eq 1 or $action eq 2 or $action eq 8}
11 {include file="CRM/Admin/Form/ContactType.tpl"}
15 {ts}CiviCRM comes with 3 basic (built-in) contact types: Individual, Household, and Organization. You can create additional contact types based on these types to further differentiate contacts (for example you might create Student, Parent, Staff, and /or Volunteer types from the basic Individual type...).{/ts} {help id="id-contactSubtype-intro"}
18 <div class="crm-content-block crm-block">
22 {* handle enable/disable actions*}
23 {include file="CRM/common/enableDisableApi.tpl"}
24 {include file="CRM/common/jsortable.tpl"}
25 <table id="options" class="display">
28 <th>{ts}Contact Type{/ts}</th>
29 <th>{ts}Based On{/ts}</th>
30 <th id="nosort">{ts}Description{/ts}</th>
34 {foreach from=$rows item=row}
35 <tr id="contact_type-{$row.id}" data-action="setvalue" class="{cycle values="odd-row,even-row"} {$row.class} crm-contactType crm-entity {if NOT $row.is_active} disabled{/if}">
36 <td class="crm-contactType-label crm-editable" data-field="label">{ts}{$row.label}{/ts}</td>
37 <td class="crm-contactType-parent">{if $row.parent}{ts}{$row.parent_label}{/ts}{else}{ts}(built-in){/ts}{/if}</td>
38 <td class="crm-contactType-description crm-editable" data-field="description" data-type="textarea">{$row.description}</td>
39 <td>{$row.action|replace:'xx':$row.id}</td>
46 <div class="messages status no-popup">
47 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
51 <div class="action-link">
52 {crmButton q="action=add&reset=1" icon="plus-circle"}{ts}Add Contact Type{/ts}{/crmButton}
53 {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}