2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2018 |
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 {* Links for scheduling/logging meetings and calls and Sending Email *}
29 {assign var = "contactId" value= $contact_id }
32 {if $as_select} {* on 3.2, the activities can be either a drop down select (on the activity tab) or a list (on the action menu) *}
33 <select name="other_activity" class="crm-form-select crm-select2 crm-action-menu fa-plus">
34 <option value="">{ts}New Activity{/ts}</option>
35 {foreach from=$activityTypes item=act}
36 <option value="{$act.url}" data-icon="{$act.icon}">{$act.label}</option>
40 <script type="text/javascript">
42 $('[name=other_activity].crm-action-menu').change(function() {
47 $el.select2('val', '');
48 CRM.loadForm(url).on('crmFormSuccess', function() {
49 CRM.refreshParent($el);
58 <li class="crm-activity-tab"><a href="#" data-tab="activity">{ts}Record Activity:{/ts}</a></li>
59 {foreach from=$activityTypes key=k item=act}
60 <li class="crm-activity-type_{$k}">
61 <a href="{$act.url}" data-tab="activity">
62 <i class="crm-i {$act.icon}"></i> {$act.label}
67 {* add hook links if any *}
69 {foreach from=$hookLinks item=link}
71 <a href="{$link.url}" data-tab="activity"{if !empty($link.title)} title="{$link.title|escape}"{/if}
72 {if !empty($link.class)} class="{$link.class}"{/if}>
74 <img src="{$link.img}" alt="{$link.title|escape}" />