remove wysiwyg options on upgrade
[civicrm-core.git] / templates / CRM / Contact / Form / Task / AddToOrganization.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
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. |
12 | |
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. |
17 | |
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 +--------------------------------------------------------------------+
25 *}
26 <div class="crm-block crm-form-block crm-contact-task-addtoOrganization-form-block">
27 <div id="help">
28 {ts}Choose Relationship Type and Target Organization{/ts}
29 </div>
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>
38 </tr>
39 <tr class="crm-contact-task-addtoOrganization-form-block-name">
40 <td>{$form.name.label}</td><td>{$form.name.html}</td>
41 </tr>
42 <tr><td></td><td>{$form._qf_AddToOrganization_refresh.html}&nbsp;&nbsp;{$form._qf_AddToOrganization_cancel.html}</td></tr>
43 </table>
44 {if $searchDone } {* Search button clicked *}
45 {if $searchCount}
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}
50 </div>
51 {strip}
52 <table>
53 <tr class="columnheader">
54 <td>&nbsp;</td>
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>
60 </tr>
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>
65 <td>{$row.city}</td>
66 <td>{$row.state}</td>
67 <td>{$row.email}</td>
68 <td>{$row.phone}</td>
69 </tr>
70 {/foreach}
71 </table>
72 {/strip}
73 </fieldset>
74 {else} {* too many results - we're only displaying 50 *}
75 </div></fieldset>
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"}
79 {/if}
80 {else} {* no valid matches for name + contact_type *}
81 </div></fieldset>
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 *}
86 {else}
87 </div></fieldset>
88 {/if} {* end if searchDone *}
89 {/if} {* end action = add *}
90
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">
94
95 <div class="description">
96
97 </div>
98 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
99 </div>
100 <div class="form-item">
101 {$form.status.label} {$form.status.html}
102 </div>
103
104
105 </div></fieldset>
106 {/if}
107
108
109