Remove last in-between parser class
[civicrm-core.git] / templates / CRM / Admin / Page / ContactType.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 +--------------------------------------------------------------------+
9 *}
10 {if $action eq 1 or $action eq 2 or $action eq 8}
11 {include file="CRM/Admin/Form/ContactType.tpl"}
12 {else}
13
14 <div class="help">
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>
17
18 <div class="crm-content-block crm-block">
19 {if $rows}
20 <div>
21 {strip}
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">
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}
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}">
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>
40 </tr>
41 {/foreach}
42 </table>
43 {/strip}
44 </div>
45 {else}
46 <div class="messages status no-popup">
47 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
48 {ts}None found.{/ts}
49 </div>
50 {/if}
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}
54 </div>
55 </div>
56 {/if}