{* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | 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 file provides the HTML for the on-behalf-of form. Can also be used for related contact edit form. *}
{$fieldSetTitle} {if $contact_type eq 'Individual'} {if $contactEditMode}
{/if}
{$form.prefix_id.label} {$form.first_name.label} {$form.middle_name.label} {$form.last_name.label} {$form.suffix_id.label}
{$form.prefix_id.html} {$form.first_name.html} {$form.middle_name.html|crmAddClass:eight} {$form.last_name.html} {$form.suffix_id.html}
{if $contactEditMode}
{/if} {elseif $contact_type eq 'Household'} {if $contactEditMode}
{/if}
{$form.household_name.label}
{$form.household_name.html|crmAddClass:big}
{if $contactEditMode}
{/if} {elseif $contact_type eq 'Organization'} {if $contactEditMode}
{/if}
{$form.organization_name.label}
{$form.organization_name.html|crmAddClass:big}
{if $contactEditMode}
{/if} {/if} {* Display the address block *} {assign var=index value=1} {if $contactEditMode}
{ts}Phone and Email{/ts}
{$form.phone.$index.phone.label} {$form.phone.$index.phone.html}
{$form.email.$index.email.label} {$form.email.$index.email.html}
{/if} {if $contactEditMode}
{ts}Address{/ts}{/if}
{if !$contactEditMode}
{$form.phone.$index.phone.label}
{$form.phone.$index.phone.html}
{$form.email.$index.email.label}
{$form.email.$index.email.html}
{/if} {if $addressSequence.street_address}
{$form.address.$index.street_address.label}
{$form.address.$index.street_address.html}
{ts}Street number, street name, apartment/unit/suite - OR P.O. box{/ts}
{/if} {if $addressSequence.supplemental_address_1}
{$form.address.$index.supplemental_address_1.label}
{$form.address.$index.supplemental_address_1.html}
{ts}Supplemental address info, e.g. c/o, department name, building name, etc.{/ts}
{/if} {if $addressSequence.supplemental_address_2}
{$form.address.$index.supplemental_address_2.label}
{$form.address.$index.supplemental_address_2.html}
{/if} {if $addressSequence.city}
{$form.address.$index.city.label}
{$form.address.$index.city.html}
{/if} {if $addressSequence.postal_code}
{$form.address.$index.postal_code.label}
{$form.address.$index.postal_code.html} {if $form.address.$index.postal_code_suffix.html} - {$form.address.$index.postal_code_suffix.html}
{ts}Enter optional 'add-on' code after the dash ('plus 4' code for U.S. addresses).{/ts} {/if}
{/if} {if $addressSequence.country}
{$form.address.$index.country_id.label}
{$form.address.$index.country_id.html}
{/if} {if $addressSequence.state_province}
{$form.address.$index.state_province_id.label}
{$form.address.$index.state_province_id.html}
{/if} {if $contactEditMode and $form.location.$index.address.geo_code_1.label}
{$form.address.$index.geo_code_1.label}, {$form.address.$index.geo_code_2.label}
{$form.address.$index.geo_code_1.html}, {$form.address.$index.geo_code_2.html}
{ts}Latitude and longitude may be automatically populated by enabling a Mapping Provider.{/ts} {docURL page="user/initial-set-up/installation-and-basic-setup" text="(Refer to the Mapping and Geocoding section in the Installation and Basic Setup Chapter)"}
{/if}
{if $contactEditMode}
{/if}
{if $form.is_for_organization} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="is_for_organization" trigger_value ="true" target_element_id ="for_organization" target_element_type ="block" field_type ="radio" invert = "false" } {/if} {if $relatedOrganizationFound} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="org_option" trigger_value ="true" target_element_id ="select_org" target_element_type ="table-row" field_type ="radio" invert = "true" } {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="org_option" trigger_value ="true" target_element_id ="create_org" target_element_type ="table-row" field_type ="radio" invert = "false" } {/if}