2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 {* Related Contacts/Memberships block within View Membership *}
27 <div class="view-content">
28 <div class="crm-block crm-content-block">
29 {include file="CRM/common/jsortable.tpl" useAjax=0}
30 <div id="related-contacts-memberships">
31 <h3>{ts}Related Contacts/Memberships{/ts}</h3>
33 <table id="related_contact" class="display">
36 <th>{ts}Relationship{/ts}</th>
37 <th>{ts}Relationship Start{/ts}</th>
38 <th>{ts}Relationship End{/ts}</th>
39 <th>{ts}Name{/ts}</th>
40 <th></th> {* Job title or other information complementing Relationship *}
41 <th>{ts}Membership Status{/ts}</th>
42 <th id="nosort">{$related_text}</th>
45 {foreach from=$related item=rel}
46 <tr id="rel_{$rel.id}" class="{cycle values="odd-row,even-row"} row-relationship {if $rel.membership_id}row-highlight{/if}">
48 <a href="{crmURL p='civicrm/contact/view/rel' q="action=view&reset=1&selectedChild=rel&cid=`$rel.cid`&id=`$rel.id`"}">{$rel.relation}</a>
50 <td>{$rel.start_date|crmDate}</td>
51 <td>{$rel.end_date|crmDate}</td>
53 <a href="{crmURL p='civicrm/contact/view' q="action=view&reset=1&cid=`$rel.cid`"}">{$rel.name}</a>
55 <td>{$rel.comment}</td>
56 <td class="bold">{$rel.status}</td>
57 <td class="nowrap">{$rel.action|replace:'xx':$rel.mid}</td>