Merge remote-tracking branch 'upstream/4.3' into 4.3-4.4-2013-11-26-11-43-18
[civicrm-core.git] / templates / CRM / Activity / Form / ActivityLinks.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
232624b1 3 | CiviCRM version 4.4 |
6a488035
TO
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{* Links for scheduling/logging meetings and calls and Sending Email *}
27{if $cdType eq false }
28{if $contact_id }
29{assign var = "contactId" value= $contact_id }
30{/if}
31
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 onchange="if (this.value) window.location=''+ this.value; else return false" name="other_activity" id="other_activity" class="form-select">
34 <option value="">{ts}- new activity -{/ts}</option>
35{foreach from=$activityTypes key=k item=link}
36 <option value="{$urls.$k}">{$link}</option>
37{/foreach}
38</select>
39
40{else}
41<ul>
42{foreach from=$activityTypes key=k item=link}
43<li class="crm-activity-type_{$k}"><a href="{$urls.$k}">{$link}</a></li>
44{/foreach}
45
46{* add hook links if any *}
47{if $hookLinks}
48 {foreach from=$hookLinks item=link}
49 <li>
50 <a href="{$link.url}">
51 {if $link.img}
52 <img src="{$link.img}" alt="{$link.title}" />&nbsp;
53 {/if}
54 {$link.title}
55 </a>
56 </li>
57 {/foreach}
58{/if}
59
60</ul>
61
62{/if}
63
64{/if}