Commit | Line | Data |
---|---|---|
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 | *} | |
6a488035 TO |
10 | {if $action eq 1 or $action eq 2 or $action eq 8} |
11 | {include file="CRM/Admin/Form/ContactType.tpl"} | |
12 | {else} | |
13 | ||
f6eedce7 | 14 | <div class="help"> |
e2046b33 CW |
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"} |
16 | </div> | |
a5175109 MR |
17 | |
18 | <div class="crm-content-block crm-block"> | |
71d7100c | 19 | {if $rows} |
a5175109 | 20 | <div> |
6a488035 TO |
21 | {strip} |
22 | {* handle enable/disable actions*} | |
4d17a233 | 23 | {include file="CRM/common/enableDisableApi.tpl"} |
6a488035 TO |
24 | {include file="CRM/common/jsortable.tpl"} |
25 | <table id="options" class="display"> | |
26 | <thead> | |
27 | <tr> | |
28 | <th>{ts}Contact Type{/ts}</th> | |
29 | <th>{ts}Based On{/ts}</th> | |
30 | <th id="nosort">{ts}Description{/ts}</th> | |
31 | <th></th> | |
32 | </tr> | |
33 | </thead> | |
34 | {foreach from=$rows item=row} | |
782dfac1 | 35 | <tr id="contact_type-{$row.id}" data-action="create" class="{cycle values="odd-row,even-row"} {if !empty($row.class)}{$row.class}{/if} crm-contactType crm-entity {if NOT $row.is_active} disabled{/if}"> |
4d17a233 | 36 | <td class="crm-contactType-label crm-editable" data-field="label">{ts}{$row.label}{/ts}</td> |
6a488035 | 37 | <td class="crm-contactType-parent">{if $row.parent}{ts}{$row.parent_label}{/ts}{else}{ts}(built-in){/ts}{/if}</td> |
7d644ac8 | 38 | <td class="crm-contactType-description crm-editable" data-field="description" data-type="textarea">{$row.description}</td> |
6a488035 TO |
39 | <td>{$row.action|replace:'xx':$row.id}</td> |
40 | </tr> | |
41 | {/foreach} | |
42 | </table> | |
43 | {/strip} | |
e2046b33 CW |
44 | </div> |
45 | {else} | |
6a488035 | 46 | <div class="messages status no-popup"> |
e2046b33 CW |
47 | <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/> |
48 | {ts}None found.{/ts} | |
6a488035 | 49 | </div> |
e2046b33 CW |
50 | {/if} |
51 | <div class="action-link"> | |
80bc2820 AH |
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} | |
e2046b33 | 54 | </div> |
a5175109 | 55 | </div> |
6a488035 | 56 | {/if} |