Merge pull request #17314 from jitendrapurohit/dev-1758
[civicrm-core.git] / templates / CRM / Member / Form / MembershipRelated.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {* Related Contacts/Memberships block within View Membership *}
11 <div class="view-content">
12 <div class="crm-block crm-content-block">
13 {include file="CRM/common/jsortable.tpl" useAjax=0}
14 <div id="related-contacts-memberships">
15 <h3>{ts}Related Contacts/Memberships{/ts}</h3>
16 {strip}
17 <table id="related_contact" class="display">
18 <thead>
19 <tr>
20 <th>{ts}Relationship{/ts}</th>
21 <th>{ts}Relationship Start{/ts}</th>
22 <th>{ts}Relationship End{/ts}</th>
23 <th>{ts}Name{/ts}</th>
24 <th></th> {* Job title or other information complementing Relationship *}
25 <th>{ts}Membership Status{/ts}</th>
26 <th id="nosort">{$related_text}</th>
27 </tr>
28 </thead>
29 {foreach from=$related item=rel}
30 <tr id="rel_{$rel.id}" class="{cycle values="odd-row,even-row"} row-relationship {if $rel.membership_id}row-highlight{/if}">
31 <td>
32 <a href="{crmURL p='civicrm/contact/view/rel' q="action=view&reset=1&selectedChild=rel&cid=`$rel.cid`&id=`$rel.id`"}">{$rel.relation}</a>
33 </td>
34 <td data-order="{$rel.start_date}">{$rel.start_date|crmDate}</td>
35 <td data-order="{$rel.end_date}">{$rel.end_date|crmDate}</td>
36 <td class="bold">
37 <a href="{crmURL p='civicrm/contact/view' q="action=view&reset=1&cid=`$rel.cid`"}">{$rel.name}</a>
38 </td>
39 <td>{$rel.comment}</td>
40 <td class="bold">{$rel.status}</td>
41 <td class="nowrap">{$rel.action|replace:'xx':$rel.mid}</td>
42 </tr>
43 {/foreach}
44 </table>
45 {/strip}
46 </div>
47 </div>
48 </div>