Add aria-hidden to extant icons
[civicrm-core.git] / templates / CRM / Contact / Page / DashBoardDashlet.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
1188c7a8 3 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 4 | |
1188c7a8
TO
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
6a488035
TO
8 +--------------------------------------------------------------------+
9*}
10{include file="CRM/common/dashboard.tpl"}
dc61ee93 11{include file="CRM/common/chart.tpl"}
6a488035 12{* Alerts for critical configuration settings. *}
9d9fa5bc 13{$communityMessages}
4e1046df 14<div class="crm-submit-buttons crm-dashboard-controls">
c88cb3c7 15<a href="#" id="crm-dashboard-configure" class="crm-hover-button show-add">
13a3d214 16 <i class="crm-i fa-wrench" aria-hidden="true"></i> {ts}Configure Your Dashboard{/ts}
c88cb3c7 17</a>
6a488035 18
4e1046df 19<a style="float:right;" href="#" class="crm-hover-button show-refresh" style="margin-left: 6px;">
13a3d214 20 <i class="crm-i fa-refresh" aria-hidden="true"></i> {ts}Refresh Dashboard Data{/ts}
c88cb3c7 21</a>
6a488035
TO
22
23</div>
24<div class="clear"></div>
25<div class="crm-block crm-content-block">
26{* Welcome message appears when there are no active dashlets for the current user. *}
27<div id="empty-message" class='hiddenElement'>
28 <div class="status">
29 <div class="font-size12pt bold">{ts}Welcome to your Home Dashboard{/ts}</div>
30 <div class="display-block">
31 {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"}
32 </div>
33 </div>
34</div>
35
4e1046df 36<div id="configure-dashlet" class='hiddenElement' style="min-height: 20em;"></div>
6a488035
TO
37<div id="civicrm-dashboard">
38 {* You can put anything you like here. jQuery.dashboard() will remove it. *}
39 <noscript>{ts}Javascript must be enabled in your browser in order to use the dashboard features.{/ts}</noscript>
40</div>
41<div class="clear"></div>
42{literal}
43<script type="text/javascript">
3cc60a06 44 CRM.$(function($) {
4e1046df
CW
45 $('#crm-dashboard-configure').click(function(e) {
46 e.preventDefault();
47 $(this).hide();
48 if ($("#empty-message").is(':visible')) {
49 $("#empty-message").fadeOut(400);
50 }
51 $("#civicrm-dashboard").fadeOut(400, function() {
52 $(".crm-dashboard-controls").hide();
53 $("#configure-dashlet").fadeIn(400);
6a488035 54 });
4e1046df 55 CRM.loadPage(CRM.url('civicrm/dashlet', 'reset=1'), {target: $("#configure-dashlet")});
b7054e52
CW
56 });
57 });
6a488035
TO
58</script>
59{/literal}
60</div>