Merge pull request #2036 from agh1/no-amounts-member-priceset
[civicrm-core.git] / templates / CRM / Contact / Page / Inline / Actions.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.4 |
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 {* this template is used for the dropdown menu of the "Actions" button on contacts. *}
27
28 <div id="crm-contact-actions-wrapper" data-edit-params='{ldelim}"cid": "{$contactId}", "class_name": "CRM_Contact_Page_Inline_Actions"{rdelim}'>
29 <a id="crm-contact-actions-link" class="button"><span><div class="icon dropdown-icon"></div>{ts}Actions{/ts}</span></a>
30 <div class="ac_results" id="crm-contact-actions-list">
31 <div class="crm-contact-actions-list-inner">
32 <div class="crm-contact_activities-list">
33 {include file="CRM/Activity/Form/ActivityLinks.tpl" as_select=false}
34 </div>
35
36 <div class="crm-contact_print-list">
37 <ul class="contact-print">
38 <li class="crm-contact-print">
39 <a class="print" title="{ts}Printer-friendly view of this page.{/ts}" href='{crmURL p='civicrm/contact/view/print' q="reset=1&print=1&cid=$contactId"}'>
40 <span><div class="icon print-icon"></div>{ts}Print Summary{/ts}</span>
41 </a>
42 </li>
43 <li>
44 <a class="vcard " title="{ts}vCard record for this contact.{/ts}" href="{crmURL p='civicrm/contact/view/vcard' q="reset=1&cid=$contactId"}"><span><div class="icon vcard-icon"></div>{ts}vCard{/ts}</span>
45 </a>
46 </li>
47 {if !empty($dashboardURL)}
48 <li class="crm-contact-dashboard">
49 <a href="{$dashboardURL}" class="dashboard " title="{ts}dashboard{/ts}">
50 <span><div class="icon dashboard-icon"></div>{ts}Contact Dashboard{/ts}</span>
51 </a>
52 </li>
53 {/if}
54 {if !empty($userRecordUrl)}
55 <li class="crm-contact-user-record">
56 <a href="{$userRecordUrl}" class="user-record " title="{ts}User Record{/ts}">
57 <span><div class="icon user-record-icon"></div>{ts}User Record{/ts}</span>
58 </a>
59 </li>
60 {/if}
61 {if !empty($userAddUrl)}
62 <li class="crm-contact-user-record">
63 <a href="{$userAddUrl}" class="user-record " title="{ts}Create User Record{/ts}">
64 <span><div class="icon user-record-icon"></div>{ts}Create User Record{/ts}</span>
65 </a>
66 </li>
67 {/if}
68 </ul>
69 </div>
70 <div class="crm-contact_actions-list">
71 <ul class="contact-actions">
72 {foreach from=$actionsMenuList.moreActions item='row'}
73 {if $row.href}
74 <li class="crm-action-{$row.ref}">
75 <a href="{$row.href}&cid={$contactId}" title="{$row.title}">{$row.title}</a>
76 </li>
77 {/if}
78 {/foreach}
79 </ul>
80 </div>
81
82
83 <div class="clear"></div>
84 </div>
85 </div>
86 </div>
87 {literal}
88 <script type="text/javascript">
89
90 cj('#crm-contact-actions-list').click(function(event){
91 event.stopPropagation();
92 });
93
94 cj('#crm-contact-actions-link').click(function(event) {
95 cj('#crm-contact-actions-list').toggle();
96 event.stopPropagation();
97 return false;
98 });
99
100 </script>
101 {/literal}