{$_is_company = false} {$_type = waRequest::request("type", false)} {if !empty($_type) && $_type === "company"} {$_is_company = true} {/if} {$_title = "[`Add person`]"} {if !empty($_is_company)} {$_title = "[`Add company`]"} {/if}

{$_title|escape} [`or`] {$_params = []} {if !empty($call)}{$_params[] = "call={$call.id}"}{/if} {if !empty($is_extended)}{$_params[] = "?extended=true"}{/if} {if !empty($_is_company)} [`Add person`] {else} [`Add company`] {/if} {if empty($_is_company) && !empty($call) && !empty($call.plugin_client_number) && $can_edit} [`or`] [`Update existing contact`] {/if}

{if !empty($_is_company)} {include file="./Contact.companyAddForm.html" inline} {else} {include file="./ContactForm.inc.html" hide_role=true inline} {/if}
{if !empty($extended_fields)}
{include file="./ContactNew.extendedFields.inc.html" extended_fields=$extended_fields use_form=true inline}
{/if}
{**}

[`Who can see profile and timeline`]

{foreach ['shared' => '[`Shared segments`]', 'my' => '[`My segments`]'] as $shared_type => $block_name} {if $segments[$shared_type]}
{$block_name}:
{/if} {/foreach}
{if !empty($available_funnel)}
[`Deal name`]
[`Funnel`]
{$_active_funnel = reset($funnels)} {if !empty($funnel)}{$_active_funnel = $funnel}{/if} {$_active_stage = reset($_active_funnel.stages)} {function name="_renderStage"} {if empty($_stage)} {$_stage = [ "id" => "%id%", "name" => "%name%", "color" => "%color%" ]} {/if}
  • {if !empty($_stage.color)} {/if} {$_stage.name|escape}
  • {/function} {capture assign="_stage_template_html"}{_renderStage _stage=[]}{/capture}
    [`Estimated amount`]
    [`Estimated close date`]
    {/if}