{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *}
{ts}Choose Relationship Type and Target Household{/ts}
{if $action EQ 2} {* action = update *} {else} {* action = add *}
{include file="CRM/Contact/Form/Task.tpl"}
{$form.relationship_type_id.label} {$form.relationship_type_id.html}
{$form.name.label} {$form.name.html}
{$form._qf_AddToHousehold_refresh.html}  {$form._qf_AddToHousehold_cancel.html}
{if $searchDone } {* Search button clicked *} {if $searchCount} {if $searchRows} {* we've got rows to display *}
{ts}Mark Target Contact(s) for this Relationship{/ts}
{ts}Mark the target contact(s) for this relationship if it appears below. Otherwise you may modify the search name above and click Search again.{/ts}
{strip} {foreach from=$searchRows item=row} {/foreach}
  {ts}Name{/ts} {ts}City{/ts} {ts}State{/ts} {ts}Email{/ts} {ts}Phone{/ts}
{$form.contact_check[$row.id].html} {$row.type} {$row.name} {$row.city} {$row.state} {$row.email} {$row.phone}
{/strip}
{else} {* too many results - we're only displaying 50 *}
{capture assign=infoTitle}{ts}Too many matching results{/ts}{/capture} {capture assign=infoMessage}{ts}Please narrow your search by entering a more complete target contact name.{/ts}{/capture} {include file="CRM/common/info.tpl"} {/if} {else} {* no valid matches for name + contact_type *} {capture assign=infoTitle}{ts}No matching results for{/ts}{/capture} {capture assign=infoMessage}{ts}Check your spelling, or try fewer letters for the target contact name.{/ts}{/capture} {include file="CRM/common/info.tpl"} {/if} {* end if searchCount *} {else} {/if} {* end if searchDone *} {/if} {* end action = add *} {* Only show buttons if action=update, OR if we have $contacts (results)*} {if $searchRows OR $action EQ 2}
{include file="CRM/common/formButtons.tpl"}
{$form.status.label} {$form.status.html}
{/if}