Ian province abbreviation patch - issue 724
[civicrm-core.git] / templates / CRM / Contact / Page / DashBoardDashlet.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 {include file="CRM/common/dashboard.tpl"}
27 {include file="CRM/common/openFlashChart.tpl"}
28 {* Alerts for critical configuration settings. *}
29 {$communityMessages}
30 <div class="crm-submit-buttons">
31 <a href="#" id="crm-dashboard-configure" class="crm-hover-button show-add">
32 <span class="icon ui-icon-wrench"></span> {ts}Configure Your Dashboard{/ts}
33 </a>
34
35 <a style="display:none;" href="{crmURL p="civicrm/dashboard" q="reset=1"}" class="button show-done" style="margin-left: 6px;">
36 <span><div class="icon ui-icon-check"></div> {ts}Done{/ts}</span>
37 </a>
38
39 <a style="float:right;" href="{crmURL p="civicrm/dashboard" q="reset=1&resetCache=1"}" class="crm-hover-button show-refresh" style="margin-left: 6px;">
40 <span class="icon ui-icon-refresh"></span> {ts}Refresh Dashboard Data{/ts}
41 </a>
42
43 </div>
44 <div class="clear"></div>
45 <div class="crm-block crm-content-block">
46 {* Welcome message appears when there are no active dashlets for the current user. *}
47 <div id="empty-message" class='hiddenElement'>
48 <div class="status">
49 <div class="font-size12pt bold">{ts}Welcome to your Home Dashboard{/ts}</div>
50 <div class="display-block">
51 {ts}Your dashboard provides a one-screen view of the data that's most important to you. Graphical or tabular data is pulled from the reports you select, and is displayed in 'dashlets' (sections of the dashboard).{/ts} {help id="id-dash_welcome" file="CRM/Contact/Page/Dashboard.hlp"}
52 </div>
53 </div>
54 </div>
55
56 <div id="configure-dashlet" class='hiddenElement'></div>
57 <div id="civicrm-dashboard">
58 {* You can put anything you like here. jQuery.dashboard() will remove it. *}
59 <noscript>{ts}Javascript must be enabled in your browser in order to use the dashboard features.{/ts}</noscript>
60 </div>
61 <div class="clear"></div>
62 {literal}
63 <script type="text/javascript">
64 CRM.$(function($) {
65 $('#crm-dashboard-configure').click(function() {
66 $.ajax({
67 url: CRM.url('civicrm/dashlet', 'reset=1&snippet=1'),
68 success: function( content ) {
69 $("#civicrm-dashboard, #crm-dashboard-configure, .show-refresh, #empty-message").hide();
70 $('.show-done').show();
71 $("#configure-dashlet").show().html(content).trigger('crmLoad');
72 }
73 });
74 return false;
75 });
76 });
77 </script>
78 {/literal}
79 </div>