2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
26 <div class="crm-block crm-form-block crm-contact-task-addtoOrganization-form-block">
28 {ts}Choose Relationship Type and Target Organization{/ts}
30 <table class="form-layout-compressed">
31 <tr><td></td><td>{include file="CRM/Contact/Form/Task.tpl"}</td></tr>
32 {if $action EQ 2} {* action = update *}
33 <tr><td></td><td><label>{$sort_name}</label></td></tr>
34 {else} {* action = add *}
35 <tr class="crm-contact-task-addtoOrganization-form-block-relationship_type_id">
36 <td>{$form.relationship_type_id.label}</td>
37 <td>{$form.relationship_type_id.html}</td>
39 <tr class="crm-contact-task-addtoOrganization-form-block-name">
40 <td>{$form.name.label}</td><td>{$form.name.html}</td>
42 <tr><td></td><td>{$form._qf_AddToOrganization_refresh.html} {$form._qf_AddToOrganization_cancel.html}</td></tr>
44 {if $searchDone } {* Search button clicked *}
46 {if $searchRows} {* we've got rows to display *}
47 <fieldset><legend>{ts}Mark Target Contact(s) for this Relationship{/ts}</legend>
48 <div class="description">
49 {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}
53 <tr class="columnheader">
55 <td>{ts}Name{/ts}</td>
56 <td>{ts}City{/ts}</td>
57 <td>{ts}State{/ts}</td>
58 <td>{ts}Email{/ts}</td>
59 <td>{ts}Phone{/ts}</td>
61 {foreach from=$searchRows item=row}
62 <tr class="{cycle values="odd-row,even-row"}">
63 <td>{$form.contact_check[$row.id].html}</td>
64 <td>{$row.type} {$row.name}</td>
74 {else} {* too many results - we're only displaying 50 *}
76 {capture assign=infoTitle}{ts}Too many matching results{/ts}{/capture}
77 {capture assign=infoMessage}{ts}Please narrow your search by entering a more complete target contact name.{/ts}{/capture}
78 {include file="CRM/common/info.tpl"}
80 {else} {* no valid matches for name + contact_type *}
82 {capture assign=infoTitle}{ts}No matching results for{/ts}{/capture}
83 {capture assign=infoMessage}<ul><li>{ts 1=$form.name.value}Name like: %1{/ts}</li><li>{ts 1=$contact_type_display}Contact Type: %1{/ts}</li></ul>{ts}Check your spelling, or try fewer letters for the target contact name.{/ts}{/capture}
84 {include file="CRM/common/info.tpl"}
85 {/if} {* end if searchCount *}
88 {/if} {* end if searchDone *}
89 {/if} {* end action = add *}
91 {* Only show start/end date and buttons if action=update, OR if we have $contacts (results)*}
92 {if $searchRows OR $action EQ 2}
93 <div class="form-item">
95 <div class="description">
98 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
100 <div class="form-item">
101 {$form.status.label} {$form.status.html}