{* +--------------------------------------------------------------------+ | CiviCRM version 4.5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* This form is for Contact Add/Edit interface *} {if $addBlock} {include file="CRM/Contact/Form/Edit/$blockName.tpl"} {else} {if $contactId} {include file="CRM/Contact/Form/Edit/Lock.tpl"} {/if}
{if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') } {/if} {ts}Expand all tabs{/ts}
{include file="CRM/common/formButtons.tpl" location="top"}
{ts}Contact Details{/ts}
{include file="CRM/Contact/Form/Edit/$contactType.tpl"}
{foreach from=$blocks item="label" key="block"} {include file="CRM/Contact/Form/Edit/$block.tpl"} {/foreach}
{if $contactId} {/if}
{$form.contact_source.label} {help id="id-source"}
{$form.contact_source.html|crmAddClass:twenty}
{$form.external_identifier.label} {help id="id-external-id"}
{$form.external_identifier.html}

{$form.image_URL.label}  {help id="id-upload-image" file="CRM/Contact/Form/Contact.hlp"}
{$form.image_URL.html|crmAddClass:twenty} {if !empty($imageURL)} {include file="CRM/Contact/Page/ContactImage.tpl"} {/if}
{*add dupe buttons *} {$form._qf_Contact_refresh_dedupe.html} {if $isDuplicate}    {$form._qf_Contact_upload_duplicate.html} {/if}
{foreach from = $editOptions item = "title" key="name"} {if $name eq 'CustomData' }
{include file="CRM/Contact/Form/Edit/CustomData.tpl"}
{else} {include file="CRM/Contact/Form/Edit/$name.tpl"} {/if} {/foreach}
{include file="CRM/common/formButtons.tpl" location="bottom"}
{literal} {/literal} {* jQuery validate *} {include file="CRM/Form/validate.tpl"} {* include common additional blocks tpl *} {include file="CRM/common/additionalBlocks.tpl"} {/if}