2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
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 {* relationship selector *}
28 <div class="crm-contact-relationship-{$context}">
29 <table class="crm-contact-relationship-selector-{$context} crm-ajax-table" data-page-length='10'>
32 <th data-data="relation" class='crm-contact-relationship-type'>{ts}Relationship{/ts}</th>
33 <th data-data="sort_name" class='crm-contact-relationship-contact_name'> </th>
34 <th data-data="start_date" class='crm-contact-relationship-start_date'>{ts}Start{/ts}</th>
35 <th data-data="end_date" class='crm-contact-relationship-end_date'>{ts}End{/ts}</th>
36 <th data-data="city" class='crm-contact-relationship-city'>{ts}City{/ts}</th>
37 <th data-data="state" class='crm-contact-relationship-state'>{ts}State/Prov{/ts}</th>
38 <th data-data="email" class='crm-contact-relationship-email'>{ts}Email{/ts}</th>
39 <th data-data="phone" class='crm-contact-relationship-phone'>{ts}Phone{/ts}</th>
40 <th data-data="links" data-orderable="false" class='crm-contact-relationship-links'></th>
46 <script type="text/javascript">
48 var context = {/literal}"{$context}"{literal};
49 CRM.$('table.crm-contact-relationship-selector-' + context).data({
50 "ajax": {/literal}'{crmURL p="civicrm/ajax/contactrelationships" h=0 q="context=$context&cid=$contactId"}'{literal},