Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 TO |
4 | +--------------------------------------------------------------------+ |
5 | +--------------------------------------------------------------------+ | |
6 | | This file is a part of CiviCRM. | | |
7 | | | | |
8 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
9 | | under the terms of the GNU Affero General Public License | | |
10 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
11 | | | | |
12 | | CiviCRM is distributed in the hope that it will be useful, but | | |
13 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
14 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
15 | | See the GNU Affero General Public License for more details. | | |
16 | | | | |
17 | | You should have received a copy of the GNU Affero General Public | | |
18 | | License and the CiviCRM Licensing Exception along | | |
19 | | with this program; if not, contact CiviCRM LLC | | |
20 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
21 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
22 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
23 | +--------------------------------------------------------------------+ | |
24 | *} | |
25 | <div class="block-civicrm crm-container"> | |
26 | <div id="crm-create-new-wrapper"> | |
7d805c31 | 27 | {crmButton id="crm-create-new-link" href="#" icon="bars"}{ts}Create New{/ts}{/crmButton} |
7926b999 | 28 | <div id="crm-create-new-list"> |
6a488035 TO |
29 | <div class="crm-create-new-list-inner"> |
30 | <ul> | |
7926b999 | 31 | {foreach from=$shortCuts item=short} |
32 | <li><a href="{$short.url}" class="crm-{$short.ref}">{$short.title}</a> | |
33 | {if $short.shortCuts} | |
34 | <ul> | |
35 | {foreach from=$short.shortCuts item=shortCut} | |
36 | <li><a href="{$shortCut.url}" class="crm-{$shortCut.ref}">{$shortCut.title}</a></li> | |
37 | {/foreach} | |
38 | </ul> | |
39 | {/if} | |
40 | </li> | |
41 | {/foreach} | |
6a488035 TO |
42 | </ul> |
43 | </div> | |
44 | </div> | |
45 | </div> | |
46 | </div> | |
47 | <div class='clear'></div> | |
48 | {literal} | |
49 | <script> | |
7926b999 | 50 | (function ($) { |
f3f73c35 | 51 | $('#crm-create-new-list > div > ul').menu(); |
7926b999 | 52 | $('#crm-create-new-link').click(function (event) { |
53 | $('#crm-create-new-list').toggle(); | |
f3f73c35 | 54 | $('body:not(#crm-create-new-list)').click(function () { |
55 | $('#crm-create-new-list').hide(); | |
56 | }); | |
7926b999 | 57 | event.stopPropagation(); |
58 | return false; | |
6a488035 | 59 | }); |
7926b999 | 60 | })(CRM.$); |
6a488035 TO |
61 | </script> |
62 | ||
63 | {/literal} |