Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.3 | | |
4 | +--------------------------------------------------------------------+ | |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
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 | {* 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> | |
32 | {strip} | |
33 | <table id="related_contact" class="display"> | |
34 | <thead> | |
35 | <tr> | |
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> | |
43 | </tr> | |
44 | </thead> | |
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}"> | |
47 | <td> | |
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> | |
49 | </td> | |
50 | <td>{$rel.start_date|crmDate}</td> | |
51 | <td>{$rel.end_date|crmDate}</td> | |
52 | <td class="bold"> | |
53 | <a href="{crmURL p='civicrm/contact/view' q="action=view&reset=1&cid=`$rel.cid`"}">{$rel.name}</a> | |
54 | </td> | |
55 | <td>{$rel.comment}</td> | |
56 | <td class="bold">{$rel.status}</td> | |
57 | <td class="nowrap">{$rel.action|replace:'xx':$rel.mid}</td> | |
58 | </tr> | |
59 | {/foreach} | |
60 | </table> | |
61 | {/strip} | |
62 | </div> | |
63 | </div> | |
64 | </div> |