Merge pull request #12834 from pradpnayak/preRelHook
[civicrm-core.git] / templates / CRM / Contact / Page / View / RelationshipSelector.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
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 {crmRegion name="crm-contact-relationshipselector-pre"}
28 {/crmRegion}
29 <div class="crm-contact-relationship-{$context}">
30 <table
31 class="crm-contact-relationship-selector-{$context} crm-ajax-table"
32 data-ajax="{crmURL p="civicrm/ajax/contactrelationships" q="context=$context&cid=$contactId"}" style="width: 100%;">
33 <thead>
34 <tr>
35 <th data-data="relation" class='crm-contact-relationship-type'>{ts}Relationship{/ts}</th>
36 <th data-data="sort_name" class='crm-contact-relationship-contact_name'>&nbsp;</th>
37 <th data-data="start_date" class='crm-contact-relationship-start_date'>{ts}Start{/ts}</th>
38 <th data-data="end_date" class='crm-contact-relationship-end_date'>{ts}End{/ts}</th>
39 <th data-data="city" class='crm-contact-relationship-city'>{ts}City{/ts}</th>
40 <th data-data="state" class='crm-contact-relationship-state'>{ts}State/Prov{/ts}</th>
41 <th data-data="email" class='crm-contact-relationship-email'>{ts}Email{/ts}</th>
42 <th data-data="phone" class='crm-contact-relationship-phone'>{ts}Phone{/ts}</th>
43 <th data-data="links" data-orderable="false" class='crm-contact-relationship-links'></th>
44 </tr>
45 </thead>
46 </table>
47 </div>
48 {crmRegion name="crm-contact-relationshipselector-post"}
49 {/crmRegion}