+--------------------------------------------------------------------+
*}
{* tpl for building Individual related fields *}
-<script type="text/javascript">
-{literal}
-CRM.$(function($) {
- if ($('#contact_sub_type *').length == 0) {//if they aren't any subtype we don't offer the option
- $('#contact_sub_type').parent().hide();
- }
-});
-</script>
-{/literal}
-
<table class="form-layout-compressed">
<tr>
{if $form.prefix_id}
{$form.nick_name.label}<br />
{$form.nick_name.html}
</td>
+ {if !empty($form.contact_sub_type)}
<td>
{$form.contact_sub_type.label}<br />
{$form.contact_sub_type.html}
</td>
+ {/if}
</tr>
</table>