Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
8c9251b3 | 5 | | Copyright CiviCRM LLC (c) 2004-2018 | |
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 | *} | |
6a488035 TO |
26 | {if $action eq 1 or $action eq 2 or $action eq 8} |
27 | {include file="CRM/Admin/Form/ContactType.tpl"} | |
28 | {else} | |
29 | ||
f6eedce7 | 30 | <div class="help"> |
e2046b33 CW |
31 | {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"} |
32 | </div> | |
a5175109 MR |
33 | |
34 | <div class="crm-content-block crm-block"> | |
71d7100c | 35 | {if $rows} |
a5175109 | 36 | <div> |
6a488035 TO |
37 | {strip} |
38 | {* handle enable/disable actions*} | |
4d17a233 | 39 | {include file="CRM/common/enableDisableApi.tpl"} |
6a488035 TO |
40 | {include file="CRM/common/jsortable.tpl"} |
41 | <table id="options" class="display"> | |
42 | <thead> | |
43 | <tr> | |
44 | <th>{ts}Contact Type{/ts}</th> | |
45 | <th>{ts}Based On{/ts}</th> | |
46 | <th id="nosort">{ts}Description{/ts}</th> | |
47 | <th></th> | |
48 | </tr> | |
49 | </thead> | |
50 | {foreach from=$rows item=row} | |
4b242e82 | 51 | <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}"> |
4d17a233 | 52 | <td class="crm-contactType-label crm-editable" data-field="label">{ts}{$row.label}{/ts}</td> |
6a488035 | 53 | <td class="crm-contactType-parent">{if $row.parent}{ts}{$row.parent_label}{/ts}{else}{ts}(built-in){/ts}{/if}</td> |
7d644ac8 | 54 | <td class="crm-contactType-description crm-editable" data-field="description" data-type="textarea">{$row.description}</td> |
6a488035 TO |
55 | <td>{$row.action|replace:'xx':$row.id}</td> |
56 | </tr> | |
57 | {/foreach} | |
58 | </table> | |
59 | {/strip} | |
e2046b33 CW |
60 | </div> |
61 | {else} | |
6a488035 | 62 | <div class="messages status no-popup"> |
e2046b33 CW |
63 | <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/> |
64 | {ts}None found.{/ts} | |
6a488035 | 65 | </div> |
e2046b33 CW |
66 | {/if} |
67 | <div class="action-link"> | |
80bc2820 AH |
68 | {crmButton q="action=add&reset=1" icon="plus-circle"}{ts}Add Contact Type{/ts}{/crmButton} |
69 | {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton} | |
e2046b33 | 70 | </div> |
a5175109 | 71 | </div> |
6a488035 | 72 | {/if} |