Commit | Line | Data |
---|---|---|
40458f6c | 1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
40458f6c | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
40458f6c | 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 | {* relationship selector *} | |
27 | ||
28 | <div class="crm-contact-relationship-{$context}"> | |
7d12de7f | 29 | <table class="crm-contact-relationship-selector-{$context} crm-ajax-table" data-page-length='10'> |
40458f6c | 30 | <thead> |
31 | <tr> | |
7d12de7f JL |
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> | |
40458f6c | 41 | </tr> |
42 | </thead> | |
43 | </table> | |
40458f6c | 44 | |
7d12de7f JL |
45 | {literal} |
46 | <script type="text/javascript"> | |
47 | (function($) { | |
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}, | |
51 | }); | |
52 | })(CRM.$); | |
53 | </script> | |
54 | {/literal} | |
55 | </div> |